Package org.apache.struts.tiles2
Class TestTilesPlugin
java.lang.Object
org.apache.struts.mock.TestMockBase
org.apache.struts.tiles2.TestTilesPlugin
Tests the Tiles plugin.
- Version:
- $Rev$ $Date$
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected MockActionServletA testing action servlet.protected ModuleConfigThe first module to configure.protected ModuleConfigThe second module to configure.Fields inherited from class org.apache.struts.mock.TestMockBase
config, context, moduleConfig, moduleConfig2, moduleConfig3, page, principal, request, response, session -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.struts.mock.TestMockBase
setUpDefaultApp, setUpSecondApp, setUpThirdApp, testUtilBaseEnvironment
-
Field Details
-
module1
The first module to configure. -
module2
The second module to configure. -
actionServlet
A testing action servlet.
-
-
Constructor Details
-
TestTilesPlugin
public TestTilesPlugin()
-
-
Method Details
-
setUp
- Overrides:
setUpin classTestMockBase
-
tearDown
- Overrides:
tearDownin classTestMockBase
-
testMultiFactory
@Test public void testMultiFactory() throws ClassNotFoundException, IllegalAccessException, InstantiationException, InvocationTargetException, ServletExceptionTest multi factory creation when moduleAware=true.- Throws:
ServletException- If something goes wrong during initialization.InvocationTargetException- Bean properties problems.InstantiationException- Bean properties problems.IllegalAccessException- Bean properties problems.ClassNotFoundException- Bean properties problems.
-
testMultiModuleFailFast
@Test public void testMultiModuleFailFast() throws ClassNotFoundException, IllegalAccessException, InstantiationException, InvocationTargetException, ServletExceptionTests if the TilesPlugin does a fail-fast on multiple configuration of the same module.- Throws:
ServletException- If something goes wrong during initialization.InvocationTargetException- Bean properties problems.InstantiationException- Bean properties problems.IllegalAccessException- Bean properties problems.ClassNotFoundException- Bean properties problems.
-