01: /*
02: * User: dxseale
03: * Date: Nov 8, 2002
04: */
05: package servletunit.struts.tests.cactus;
06:
07: import servletunit.struts.CactusStrutsTestCase;
08:
09: public class TestDispatchAction extends CactusStrutsTestCase {
10:
11: public TestDispatchAction(String testName) {
12: super (testName);
13: }
14:
15: public void testDispatchAction() {
16: addRequestParameter("method", "actionOne");
17: setRequestPathInfo("test", "/testDispatchAction");
18: actionPerform();
19: verifyNoActionErrors();
20: verifyForward("action1");
21: addRequestParameter("method", "actionTwo");
22: setRequestPathInfo("test", "/testDispatchAction");
23: actionPerform();
24: verifyNoActionErrors();
25: verifyForward("action2");
26: }
27:
28: }
|