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
Nested ClassesModifier and TypeClassDescriptionstatic classUsed to detect that ActionConfig is making the right calls. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.apache.struts.config.ActionConfigThe common base we'll use.protected org.apache.struts.config.ModuleConfigThe ModuleConfig we'll use. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetUp()Set up instance variables required by this test case.voidtearDown()Tear down instance variables required by this test case.voidBasic check that shouldn't detect circular inheritance.voidBasic check that should detect circular inheritance.voidTest getter of acceptPage property.voidMake sure that correct exception is thrown if a base action can't be found.voidTest a typical form bean configuration extension where various forwards and exception handlers should be inherited from a base form.voidTest that processExtends() makes sure that a base action's own extension has been processed.voidMake sure that correct exception is thrown if a base action can't be found.voidTest setter of acceptPage property.voidTest 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.
-