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 |
}}} |