code_junkie

How to mock classes instantiated as local variables

Nov 11th, 2011
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. public void updateName(int id, String name) {
  2. getJdbcTemplate().update(
  3. "update mytable set name = ? where id = ?",
  4. new Object[] {name, new Integer(id)});
  5. }
Add Comment
Please, Sign In to add comment