|
||||||||||
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.TestActionConfig
public class TestActionConfig
Unit tests for the org.apache.struts.config.ActionConfig
class. Currently only contains code to test the methods that support
configuration inheritance.
Nested Class Summary | |
---|---|
static class |
TestActionConfig.CustomActionConfig
Used to detect that ActionConfig is making the right calls. |
Field Summary | |
---|---|
protected org.apache.struts.config.ActionConfig |
baseConfig
The common base we'll use. |
protected org.apache.struts.config.ModuleConfig |
config
The ModuleConfig we'll use. |
Constructor Summary | |
---|---|
TestActionConfig(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 |
testCheckCircularInheritance()
Basic check that shouldn't detect circular inheritance. |
void |
testCheckCircularInheritanceError()
Basic check that should detect circular inheritance. |
void |
testInheritBoolean()
Make sure that correct exception is thrown if a base action can't be found. |
void |
testInheritFrom()
Test a typical form bean configuration extension where various forwards and exception handlers should be inherited from a base form. |
void |
testProcessExtendsActionExtends()
Test that processExtends() makes sure that a base action's own extension has been processed. |
void |
testProcessExtendsMissingAction()
Make sure that correct exception is thrown if a base action can't be found. |
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 org.apache.struts.config.ModuleConfig config
protected org.apache.struts.config.ActionConfig baseConfig
Constructor Detail |
---|
public TestActionConfig(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 testCheckCircularInheritance()
public void testCheckCircularInheritanceError()
public void testProcessExtendsActionExtends() throws Exception
Exception
public void testProcessExtendsMissingAction() throws Exception
Exception
public void testInheritFrom() throws Exception
Exception
public void testInheritBoolean() throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |