KickJava   Java API By Example, From Geeks To Geeks.

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


1 package servletunit.struts.tests;
2
3 import servletunit.struts.MockStrutsTestCase;
4
5 /**
6  * Created by IntelliJ IDEA.
7  * User: deryl
8  * Date: Apr 13, 2003
9  * Time: 12:07:32 PM
10  * To change this template use Options | File Templates.
11  */

12 public class TestNullAction extends MockStrutsTestCase {
13
14     public TestNullAction(String JavaDoc testName) {
15         super(testName);
16     }
17
18     public void setUp() throws Exception JavaDoc {
19         super.setUp();
20         setServletConfigFile("/WEB-INF/web.xml");
21     }
22
23     public void testNullAction() {
24         setRequestPathInfo("test","/testNullAction.do");
25         actionPerform();
26         verifyForward(null);
27         verifyForwardPath(null);
28     }
29 }
30
Popular Tags