1 17 package servletunit.struts.tests.cactus; 18 19 import servletunit.struts.CactusStrutsTestCase; 20 21 public class TestInputForward extends CactusStrutsTestCase { 22 23 public TestInputForward(String testName) { 24 super(testName); 25 } 26 27 public void testInputForward() { 28 setRequestPathInfo("/login"); 29 actionPerform(); 30 verifyActionErrors(new String [] {"error.password.required","error.username.required"}); 31 verifyInputForward(); 32 } 33 34 public void testModuleInputForward() { 35 addRequestParameter("method","actionThree"); 36 setRequestPathInfo("test","/testDispatchAction"); 37 actionPerform(); 38 verifyNoActionErrors(); 39 verifyInputForward(); 40 } 41 42 43 } 44 | Popular Tags |