1 17 package servletunit.struts.tests.cactus; 18 19 import servletunit.struts.CactusStrutsTestCase; 20 21 public class TestRedirectAction extends CactusStrutsTestCase { 22 23 public TestRedirectAction(String testName) { 24 super(testName); 25 } 26 27 public void testRedirect() { 28 setRequestPathInfo("test","/testRedirect"); 29 actionPerform(); 30 verifyForward("redirect"); 31 verifyForwardPath("/test/main/success.jsp"); 32 verifyNoActionErrors(); 33 } 34 35 39 public void testRelativeRedirect() { 40 setRequestPathInfo("test","/testRelativeRedirect"); 41 actionPerform(); 42 verifyForwardPath("/test/main/success.jsp"); 44 verifyNoActionErrors(); 45 } 46 47 } 48 | Popular Tags |