Package org.apache.struts.tiles
Class TestTilesPlugin
java.lang.Object
org.apache.struts.mock.TestMockBase
org.apache.struts.tiles.TestTilesPlugin
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected MockActionServletprotected ModuleConfigprotected ModuleConfigFields inherited from class org.apache.struts.mock.TestMockBase
config, context, moduleConfig, moduleConfig2, moduleConfig3, page, principal, request, response, session -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateModuleConfig(String moduleName, String configFileName, boolean moduleAware) Create a module configurationvoidinitModulePlugIns(ModuleConfig moduleConfig) Fake call to init module pluginsvoidsetUp()voidtearDown()voidTest I18nFactorySet with wrong filename: emptyvoidTest I18nFactorySet with wrong filename: not normalizedvoidTest I18nFactorySet with wrong filename: withvoidTest I18nFactorySet.voidTest I18nFactorySet.voidTest multi factory creation when moduleAware=true.voidTest 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:
setUpin classTestMockBase
-
tearDown
- Overrides:
tearDownin 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
-