KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > servletunit > struts > tests > TestCustomActionMapping


1 package servletunit.struts.tests;
2
3 import servletunit.struts.MockStrutsTestCase;
4
5 public class TestCustomActionMapping extends MockStrutsTestCase {
6
7     /**
8      * Sets up the test fixture for this test. This method creates
9      * an instance of the ActionServlet, initializes it to validate
10      * forms and turn off debugging, and creates a mock HttpServletRequest
11      * and HttpServletResponse object to use in this test.
12      */

13     protected void setUp() throws Exception JavaDoc {
14         super.setUp();
15         setServletConfigFile("/WEB-INF/web.xml");
16     }
17
18     public void testUsesCustomActionMappingWhenSet() {
19         setRequestPathInfo("test","/testCustomMapping");
20         actionPerform();
21         verifyForward("success");
22     }
23 }
24
25 // $Log: TestCustomActionMapping.java,v $
26
// Revision 1.2 2004/06/11 15:55:15 deryl
27
// cleaned up logging.
28
//
29
// Revision 1.1 2004/06/10 17:34:43 deryl
30
// verified bug 955188
31
//
32
Popular Tags