Class TestForwardConfig

java.lang.Object
org.apache.struts.config.TestForwardConfig

public class TestForwardConfig extends Object
Unit tests for ForwardConfig. Currently contains tests for methods supporting configuration inheritance.
Version:
$Rev$ $Date$
  • Field Details

    • moduleConfig

      protected org.apache.struts.config.ModuleConfig moduleConfig
      The ModuleConfig we'll use.
    • baseConfig

      protected org.apache.struts.config.ForwardConfig baseConfig
      The common base we'll use.
    • subConfig

      protected org.apache.struts.config.ForwardConfig subConfig
      The common subForward we'll use.
    • actionBaseConfig

      protected org.apache.struts.config.ForwardConfig actionBaseConfig
      A ForwardConfig we'll use to test cases where a ForwardConfig declared for an action extends a ForwardConfig declared globally, with both ForwardConfigs using the same name.
    • actionConfig

      protected org.apache.struts.config.ActionConfig actionConfig
      An action mapping we'll use within tests.
  • Constructor Details

    • TestForwardConfig

      public TestForwardConfig()
  • Method Details

    • setUp

      @BeforeEach public void setUp()
      Set up instance variables required by this test case.
    • tearDown

      @AfterEach public void tearDown()
      Tear down instance variables required by this test case.
    • testCheckCircularInheritanceNoExtends

      @Test public void testCheckCircularInheritanceNoExtends()
      Make sure checkCircularInheritance() works as expected where there is no inheritance set up.
    • testCheckCircularInheritanceNoConflicts

      @Test public void testCheckCircularInheritanceNoConflicts()
      Test checkCircularInheritance() for when there is no circular inheritance.
    • testCheckCircularInheritanceBasicGlobal

      @Test public void testCheckCircularInheritanceBasicGlobal()
      Test checkCircularInheritance() for circular inheritance between global forwards.
    • testCheckCircularInheritanceGlobal2Levels

      @Test public void testCheckCircularInheritanceGlobal2Levels()
      Test checkCircularInheritance() for circular inheritance between global forwards.
    • testCheckCircularInheritanceActionForwardsNoConflict

      @Test public void testCheckCircularInheritanceActionForwardsNoConflict()
      Test checkCircularInheritance() for circular inheritance between forwards in an action.
    • testCheckCircularInheritanceActionForwardsBasic

      @Test public void testCheckCircularInheritanceActionForwardsBasic()
      Test checkCircularInheritance() for circular inheritance between forwards in an action.
    • testCheckCircularInheritanceActionForwardExtendGlobal

      @Test public void testCheckCircularInheritanceActionForwardExtendGlobal()
      Test checkCircularInheritance() for circular inheritance between a forward declared in an action and a global forward.
    • testCheckCircularInheritanceActionForwardExtendGlobalSameName

      @Test public void testCheckCircularInheritanceActionForwardExtendGlobalSameName()
      Test checkCircularInheritance() for circular inheritance between a forward declared in an action and a global forward and both forwards have the same name.
    • testProcessExtendsConfigured

      @Test public void testProcessExtendsConfigured()
      Make sure processExtends() throws an error when the config is already configured.
    • testProcessExtendsNoExtension

      @Test public void testProcessExtendsNoExtension() throws Exception
      Test processExtends() when nothing is extended.
      Throws:
      Exception
    • testProcessExtendsBasicExtension

      @Test public void testProcessExtendsBasicExtension() throws Exception
      Test processExtends() with a basic extension.
      Throws:
      Exception
    • testProcessExtendsBasicGlobalExtension

      @Test public void testProcessExtendsBasicGlobalExtension() throws Exception
      Test processExtends() with a basic extension between an action config and a global config.
      Throws:
      Exception
    • testProcessExtendsGlobalExtendingAction

      @Test public void testProcessExtendsGlobalExtendingAction()
      Test processExtends() with an incorrect setup where a global config attempts to extend an action config.
    • testProcessExtendsSameNames

      @Test public void testProcessExtendsSameNames() throws Exception
      Test processExtends() with an action config that extends a global config with the same name.
      Throws:
      Exception
    • testProcessExtendsActionExtendsActionExtendsGlobalWithSameName

      @Test public void testProcessExtendsActionExtendsActionExtendsGlobalWithSameName() throws Exception
      Test processExtends() where an action ForwardConfig extends another ForwardConfig, which in turn extends a global ForwardConfig with the same name.
      Throws:
      Exception