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
CreateActions
CreateActions_pt
CreateActions_zh
SpringControllerUnit...
SpringControllers_ko
ValidationAndListSpr...
...and 1 more




JSPWiki v2.2.33

[RSS]


Hide Menu

SpringControllers


Difference between version 13 and version 12:

At line 14 changed 3 lines.
* [2] Create a new ControllerTest to test our Controller
* [3] Create a new Controller
* [4] Run the ControllerTest
* [2] Create PersonFormControllerTest to test our Controller
* [3] Create PersonFormController
* [4] Run the PersonFormControllerTest
At line 45 changed 1 line.
!!Create a new ControllerTest to test our Controller [#3]
!!Create PersonFormControllerTest to test our Controller [#3]
At line 82 changed 1 line.
assertEquals("userForm", mv.getViewName());
assertEquals("personForm", mv.getViewName());
At line 89 changed 1 line.
!!Create a new Controller [#4]
!!Create PersonFormController [#4]
At line 171 changed 1 line.
!!Run the FormControllerTest [#5]'
!!Run the PersonFormControllerTest [#5]'
At line 173 changed 1 line.
Now, if you stop Tomcat, save everything, cd ../.. to the base directory and run __ant test-web -Dtestcase=PersonFormController__, you should get a success message from Ant.
Now, if you stop Tomcat, save everything, cd ../.. to the base directory and run __ant test-web -Dtestcase=PersonFormController__, the "testEdit" method should pass and you should see something like the following in your console:
At line 175 changed 2 lines.
%%(color:green)BUILD SUCCESSFUL\\
Total time: 51 seconds%%
{{{
[echo] Testing web...
[copy] Copying 1 file to C:\Source\appfuse-springmvc\build\appfuse\WEB-INF
[junit] [appfuse] DEBUG [main] PersonFormControllerTest.testEdit(27) | testing edit...
[junit] [appfuse] DEBUG [main] AbstractFormController.showNewForm(268) | Displaying new form
[junit] Testsuite: org.appfuse.webapp.action.PersonFormControllerTest
[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.297 sec
}}}

Back to SpringControllers, or to the Page History.