|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.apache.struts.config.TestForwardConfig
public class TestForwardConfig
Unit tests for ForwardConfig. Currently contains tests for methods supporting configuration inheritance.
Field Summary | |
---|---|
protected 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. |
protected ActionConfig |
actionConfig
An action mapping we'll use within tests. |
protected ForwardConfig |
baseConfig
The common base we'll use. |
protected ModuleConfig |
moduleConfig
The ModuleConfig we'll use. |
protected ForwardConfig |
subConfig
The common subForward we'll use. |
Constructor Summary | |
---|---|
TestForwardConfig(String name)
Construct a new instance of this test case. |
Method Summary | |
---|---|
void |
setUp()
Set up instance variables required by this test case. |
static junit.framework.Test |
suite()
Return the tests included in this test suite. |
void |
tearDown()
Tear down instance variables required by this test case. |
void |
testCheckCircularInheritanceActionForwardExtendGlobal()
Test checkCircularInheritance() for circular inheritance between a forward declared in an action and a global forward. |
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. |
void |
testCheckCircularInheritanceActionForwardsBasic()
Test checkCircularInheritance() for circular inheritance between forwards in an action. |
void |
testCheckCircularInheritanceActionForwardsNoConflict()
Test checkCircularInheritance() for circular inheritance between forwards in an action. |
void |
testCheckCircularInheritanceBasicGlobal()
Test checkCircularInheritance() for circular inheritance between global forwards. |
void |
testCheckCircularInheritanceGlobal2Levels()
Test checkCircularInheritance() for circular inheritance between global forwards. |
void |
testCheckCircularInheritanceNoConflicts()
Test checkCircularInheritance() for when there is no circular inheritance. |
void |
testCheckCircularInheritanceNoExtends()
Make sure checkCircularInheritance() works as expected where there is no inheritance set up. |
void |
testProcessExtendsActionExtendsActionExtendsGlobalWithSameName()
Test processExtends() where an action ForwardConfig extends another ForwardConfig, which in turn extends a global ForwardConfig with the same name. |
void |
testProcessExtendsBasicExtension()
Test processExtends() with a basic extension. |
void |
testProcessExtendsBasicGlobalExtension()
Test processExtends() with a basic extension between an action config and a global config. |
void |
testProcessExtendsConfigured()
Make sure processExtends() throws an error when the config is already configured. |
void |
testProcessExtendsGlobalExtendingAction()
Test processExtends() with an incorrect setup where a global config attempts to extend an action config. |
void |
testProcessExtendsNoExtension()
Test processExtends() when nothing is extended. |
void |
testProcessExtendsSameNames()
Test processExtends() with an action config that extends a global config with the same name. |
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 |
---|
protected ModuleConfig moduleConfig
protected ForwardConfig baseConfig
protected ForwardConfig subConfig
protected ForwardConfig actionBaseConfig
protected ActionConfig actionConfig
Constructor Detail |
---|
public TestForwardConfig(String name)
name
- Name of the test caseMethod Detail |
---|
public void setUp()
setUp
in class junit.framework.TestCase
public static junit.framework.Test suite()
public void tearDown()
tearDown
in class junit.framework.TestCase
public void testCheckCircularInheritanceNoExtends()
public void testCheckCircularInheritanceNoConflicts()
public void testCheckCircularInheritanceBasicGlobal()
public void testCheckCircularInheritanceGlobal2Levels()
public void testCheckCircularInheritanceActionForwardsNoConflict()
public void testCheckCircularInheritanceActionForwardsBasic()
public void testCheckCircularInheritanceActionForwardExtendGlobal()
public void testCheckCircularInheritanceActionForwardExtendGlobalSameName()
public void testProcessExtendsConfigured() throws Exception
Exception
public void testProcessExtendsNoExtension() throws Exception
Exception
public void testProcessExtendsBasicExtension() throws Exception
Exception
public void testProcessExtendsBasicGlobalExtension() throws Exception
Exception
public void testProcessExtendsGlobalExtendingAction() throws Exception
Exception
public void testProcessExtendsSameNames() throws Exception
Exception
public void testProcessExtendsActionExtendsActionExtendsGlobalWithSameName() throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |