Package org.apache.struts.config
Class TestActionConfig
java.lang.Object
org.apache.struts.config.TestActionConfig
Unit tests for the
ActionConfig
class. Currently only
contains code to test the methods that support configuration inheritance.- Version:
- $Rev$ $Date$
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Used to detect that ActionConfig is making the right calls. -
Field Summary
Modifier and TypeFieldDescriptionprotected org.apache.struts.config.ActionConfig
The common base we'll use.protected org.apache.struts.config.ModuleConfig
The ModuleConfig we'll use. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setUp()
Set up instance variables required by this test case.void
tearDown()
Tear down instance variables required by this test case.void
Basic check that shouldn't detect circular inheritance.void
Basic check that should detect circular inheritance.void
Test getter of acceptPage property.void
Make sure that correct exception is thrown if a base action can't be found.void
Test a typical form bean configuration extension where various forwards and exception handlers should be inherited from a base form.void
Test that processExtends() makes sure that a base action's own extension has been processed.void
Make sure that correct exception is thrown if a base action can't be found.void
Test setter of acceptPage property.void
Test a String object representing the value of the ActionConfig object.
-
Field Details
-
config
protected org.apache.struts.config.ModuleConfig configThe ModuleConfig we'll use. -
baseConfig
protected org.apache.struts.config.ActionConfig baseConfigThe common base we'll use.
-
-
Constructor Details
-
TestActionConfig
public TestActionConfig()
-
-
Method Details
-
setUp
Set up instance variables required by this test case. -
tearDown
Tear down instance variables required by this test case. -
testCheckCircularInheritance
Basic check that shouldn't detect circular inheritance. -
testCheckCircularInheritanceError
Basic check that should detect circular inheritance. -
testProcessExtendsActionExtends
@Test public void testProcessExtendsActionExtends() throws ClassNotFoundException, IllegalAccessException, InstantiationException, InvocationTargetExceptionTest that processExtends() makes sure that a base action's own extension has been processed. -
testProcessExtendsMissingAction
Make sure that correct exception is thrown if a base action can't be found. -
testInheritFrom
@Test public void testInheritFrom() throws ClassNotFoundException, IllegalAccessException, InstantiationException, InvocationTargetExceptionTest a typical form bean configuration extension where various forwards and exception handlers should be inherited from a base form. This method checks all the subelements. -
testInheritBoolean
@Test public void testInheritBoolean() throws ClassNotFoundException, IllegalAccessException, InstantiationException, InvocationTargetExceptionMake sure that correct exception is thrown if a base action can't be found. -
testGetAcceptPage
Test getter of acceptPage property. -
testSetAcceptPage
Test setter of acceptPage property. -
testToStringAcceptPage
Test a String object representing the value of the ActionConfig object.
-