org.apache.struts.tiles
Class TestTilesPlugin

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.struts.mock.TestMockBase
              extended by org.apache.struts.tiles.TestTilesPlugin
All Implemented Interfaces:
junit.framework.Test

public class TestTilesPlugin
extends TestMockBase


Field Summary
protected  MockActionServlet actionServlet
           
protected  ModuleConfig module1
           
protected  ModuleConfig module2
           
 
Fields inherited from class org.apache.struts.mock.TestMockBase
config, context, moduleConfig, moduleConfig2, moduleConfig3, page, principal, request, response, session
 
Constructor Summary
TestTilesPlugin(String name)
           
 
Method Summary
 ModuleConfig createModuleConfig(String moduleName, String configFileName, boolean moduleAware)
          Create a module configuration
 void initModulePlugIns(ModuleConfig moduleConfig)
          Fake call to init module plugins
static void main(String[] args)
           
 void setUp()
           
static junit.framework.Test suite()
           
 void tearDown()
           
 void testI18FactorySet_A()
          Test I18nFactorySet.
 void testI18FactorySet_B()
          Test I18nFactorySet.
 void testMultiFactory()
          Test multi factory creation when moduleAware=true.
 void testSingleSharedFactory()
          Test single factory creation when moduleAware=false.
 
Methods inherited from class org.apache.struts.mock.TestMockBase
setUpDefaultApp, setUpSecondApp, setUpThirdApp, testUtilBaseEnvironment
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

module1

protected ModuleConfig module1

module2

protected ModuleConfig module2

actionServlet

protected MockActionServlet actionServlet
Constructor Detail

TestTilesPlugin

public TestTilesPlugin(String name)
Method Detail

main

public static void main(String[] args)

suite

public static junit.framework.Test suite()

setUp

public void setUp()
Overrides:
setUp in class TestMockBase

tearDown

public void tearDown()
Overrides:
tearDown in class TestMockBase

createModuleConfig

public ModuleConfig createModuleConfig(String moduleName,
                                       String configFileName,
                                       boolean moduleAware)
Create a module configuration

Parameters:
moduleName -

initModulePlugIns

public void initModulePlugIns(ModuleConfig moduleConfig)
Fake call to init module plugins

Parameters:
moduleConfig -

testMultiFactory

public void testMultiFactory()
Test multi factory creation when moduleAware=true.


testSingleSharedFactory

public void testSingleSharedFactory()
Test single factory creation when moduleAware=false.


testI18FactorySet_A

public void testI18FactorySet_A()
Test I18nFactorySet.


testI18FactorySet_B

public void testI18FactorySet_B()
Test I18nFactorySet.



Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.