Raible's Wiki

Raible Designs
Wiki Home
News
Recent Changes

AppFuse

Homepage
  - Korean
  - Chinese
  - Italian
  - Japanese

QuickStart Guide
  - Chinese
  - French
  - German
  - Italian
  - Korean
  - Portuguese
  - Spanish
  - Japanese

User Guide
  - Korean
  - Chinese

Tutorials
  - Chinese
  - German
  - Italian
  - Korean
  - Portuguese
  - Spanish

FAQ
  - Korean

Latest Downloads

Other Applications

Struts Resume
Security Example
Struts Menu

Set your name in
UserPreferences


Referenced by
Articles
Articles_cn
Articles_pt
Articles_zh
SpringControllers
ValidationAndListSpr...




JSPWiki v2.2.33

[RSS]


Hide Menu

ValidationAndListSpring


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.