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
Modifier and TypeFieldDescriptionprotected MockActionServlet
A testing action servlet.protected ModuleConfig
The first module to configure.protected ModuleConfig
The 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
-
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:
setUp
in classTestMockBase
-
tearDown
- Overrides:
tearDown
in 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.
-