ValidationAndListSpring |
|
Your trail: |
Difference between
version 23
and
version 22:
At line 135 changed 3 lines. |
public void testGetPeople() { |
List results = mgr.getPeople(new Person()); |
assertTrue(results.size() > 0); |
public void testGetPeople() throws Exception { |
List results = new ArrayList(); |
person = new Person(); |
results.add(person); |
// set expected behavior on dao |
personDao.expects(once()).method("getPeople") |
.will(returnValue(results)); |
|
List persons = personManager.getPeople(null); |
assertTrue(persons.size() == 1); |
personDao.verify(); |
At line 221 changed 3 lines. |
ModelAndView mav = |
c.handleRequest((HttpServletRequest) null, |
(HttpServletResponse) null); |
ModelAndView mav = c.handleRequest((HttpServletRequest) null, |
(HttpServletResponse) null); |
At line 266 changed 1 line. |
private static Log log = LogFactory.getLog(PersonController.class); |
private final Log log = LogFactory.getLog(PersonController.class); |
At line 269 changed 2 lines. |
public void setPersonManager(PersonManager userManager) { |
this.mgr = userManager; |
public void setPersonManager(PersonManager personManager) { |
this.mgr = personManager; |
Back to ValidationAndListSpring,
or to the Page History.
|