java.lang.Object
junit.framework.Assert
junit.framework.TestCase
servletunit.struts.MockStrutsTestCase
servletunit.struts.tests.TestNoRequestPathInfo
- All Implemented Interfaces:
- junit.framework.Test
- public class TestNoRequestPathInfo
- extends servletunit.struts.MockStrutsTestCase
Title: TestNoRequestPathInfo
Description: Confirms correct behavior if
actionPerfoem() is called prior to calling
setRequestPathInfo().
Copyright: Copyright (c) 2003
- Version:
- 1.0
| Fields inherited from class servletunit.struts.MockStrutsTestCase |
actionPath, actionServlet, actionServletIsInitialized, config, context, isInitialized, logger, registrations, request, requestPathSet, requestWrapper, response, responseWrapper |
| Fields inherited from class junit.framework.TestCase |
|
|
Method Summary |
void |
setUp()
Sets up the test fixture for this test. |
void |
testNoRequestPathInfo()
this test assumes that web.xml and struts-config.xml
can be found. |
| Methods inherited from class servletunit.struts.MockStrutsTestCase |
actionPerform, addRequestParameter, addRequestParameter, clearRequestParameters, getActionForm, getActionServlet, getActualForward, getMockRequest, getMockResponse, getRequest, getRequestWrapper, getResponse, getResponseWrapper, getSession, setActionForm, setActionServlet, setConfigFile, setConfigFile, setContextDirectory, setInitParameter, setRequestPathInfo, setRequestPathInfo, setRequestWrapper, setResponseWrapper, setServletConfigFile, tearDown, verifyActionErrors, verifyActionMessages, verifyForward, verifyForwardPath, verifyInputForward, verifyInputTilesForward, verifyNoActionErrors, verifyNoActionMessages, verifyTilesForward |
| Methods inherited from class junit.framework.Assert |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
TestNoRequestPathInfo
public TestNoRequestPathInfo()
setUp
public void setUp()
throws java.lang.Exception
- Description copied from class:
servletunit.struts.MockStrutsTestCase
- Sets up the test fixture for this test. This method creates
an instance of the ActionServlet, initializes it to validate
forms and turn off debugging, and creates a mock HttpServletRequest
and HttpServletResponse object to use in this test.
testNoRequestPathInfo
public void testNoRequestPathInfo()
- this test assumes that web.xml and struts-config.xml
can be found. If these files are found,
but no request path is set prior to calling
actionPerform(), we expect an IllegalStateException