Package org.apache.struts.mock
Class TestMockBase
java.lang.Object
org.apache.struts.mock.TestMockBase
- Direct Known Subclasses:
TestActionConfigMatcher
,TestCommonsMultipartRequestHandler
,TestDynaValidatorForm
,TestRequestUtils
,TestRequestUtilsPopulate
,TestResponseUtils
,TestValidatorForm
Convenience base class for unit tests of the
org.apache.struts.mock
package, and others that require a runtime environment similar to what the
Struts controller servlet sets up. The setUp()
method
establishes a consistent basic environment for the various tests. The only
tests included in this class are simple validations that the basic
environment was set up correctly.- Version:
- $Rev$ $Date$
-
Field Summary
Modifier and TypeFieldDescriptionprotected MockServletConfig
protected MockServletContext
protected org.apache.struts.config.ModuleConfig
protected org.apache.struts.config.ModuleConfig
protected org.apache.struts.config.ModuleConfig
protected MockPageContext
protected MockPrincipal
protected MockHttpServletRequest
protected MockHttpServletResponse
protected MockHttpSession
-
Constructor Summary
-
Method Summary
-
Field Details
-
moduleConfig
protected org.apache.struts.config.ModuleConfig moduleConfig -
moduleConfig2
protected org.apache.struts.config.ModuleConfig moduleConfig2 -
moduleConfig3
protected org.apache.struts.config.ModuleConfig moduleConfig3 -
config
-
context
-
page
-
principal
-
request
-
response
-
session
-
-
Constructor Details
-
TestMockBase
public TestMockBase()
-
-
Method Details
-
setUp
-
setUpDefaultApp
protected void setUpDefaultApp() -
setUpSecondApp
protected void setUpSecondApp() -
setUpThirdApp
protected void setUpThirdApp() -
tearDown
-
testUtilBaseEnvironment
-