Package org.apache.struts.tiles
Class TestTilesPlugin
java.lang.Object
org.apache.struts.mock.TestMockBase
org.apache.struts.tiles.TestTilesPlugin
-
Field Summary
Modifier and TypeFieldDescriptionprotected MockActionServlet
protected ModuleConfig
protected ModuleConfig
Fields inherited from class org.apache.struts.mock.TestMockBase
config, context, moduleConfig, moduleConfig2, moduleConfig3, page, principal, request, response, session
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateModuleConfig
(String moduleName, String configFileName, boolean moduleAware) Create a module configurationvoid
initModulePlugIns
(ModuleConfig moduleConfig) Fake call to init module pluginsvoid
setUp()
void
tearDown()
void
Test I18nFactorySet with wrong filename: emptyvoid
Test I18nFactorySet with wrong filename: not normalizedvoid
Test I18nFactorySet with wrong filename: withvoid
Test I18nFactorySet.void
Test I18nFactorySet.void
Test multi factory creation when moduleAware=true.void
Test single factory creation when moduleAware=false.Methods inherited from class org.apache.struts.mock.TestMockBase
setUpDefaultApp, setUpSecondApp, setUpThirdApp, testUtilBaseEnvironment
-
Field Details
-
module1
-
module2
-
actionServlet
-
-
Constructor Details
-
TestTilesPlugin
public TestTilesPlugin()
-
-
Method Details
-
setUp
- Overrides:
setUp
in classTestMockBase
-
tearDown
- Overrides:
tearDown
in classTestMockBase
-
createModuleConfig
public ModuleConfig createModuleConfig(String moduleName, String configFileName, boolean moduleAware) Create a module configuration- Parameters:
moduleName
-
-
initModulePlugIns
public void initModulePlugIns(ModuleConfig moduleConfig) throws ClassNotFoundException, IllegalAccessException, InstantiationException, InvocationTargetException, ServletException Fake call to init module plugins- Parameters:
moduleConfig
-- Throws:
ServletException
- If something goes wrong during initialization.InvocationTargetException
- Bean properties problems.InstantiationException
- Bean properties problems.IllegalAccessException
- Bean properties problems.ClassNotFoundException
- Bean properties problems.
-
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.
-
testI18FactorySet_A
Test I18nFactorySet. -
testI18FactorySet_B
Test I18nFactorySet. -
testFileNameNotNormalized
Test I18nFactorySet with wrong filename: not normalized -
testFileNameWithNul
Test I18nFactorySet with wrong filename: with -
testFileNameEmpty
Test I18nFactorySet with wrong filename: empty
-