Package org.apache.struts.config
Class TestFormBeanConfig
java.lang.Object
org.apache.struts.config.TestFormBeanConfig
Unit tests for the
FormBeanConfig
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 FormBeanConfig is making the right calls. -
Field Summary
-
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 an error.void
Basic check that SHOULD detect an error.void
Test a typical form bean configuration extension where various properties should be inherited from a base form.void
Test that processExtends() makes sure that a base form's own extension has been processed.void
Make sure that correct exception is thrown if a base form can't be found.
-
Field Details
-
config
protected org.apache.struts.config.ModuleConfig configThe ModuleConfig we'll use. -
baseForm
protected org.apache.struts.config.FormBeanConfig baseFormThe common base we'll use.
-
-
Constructor Details
-
TestFormBeanConfig
public TestFormBeanConfig()
-
-
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 an error. -
testCheckCircularInheritanceError
Basic check that SHOULD detect an error. -
testProcessExtendsBaseFormExtends
Test that processExtends() makes sure that a base form's own extension has been processed.- Throws:
Exception
-
testProcessExtendsMissingBaseForm
Make sure that correct exception is thrown if a base form can't be found. -
testInheritFrom
@Test public void testInheritFrom() throws ClassNotFoundException, IllegalAccessException, InstantiationException, InvocationTargetExceptionTest a typical form bean configuration extension where various properties should be inherited from a base form. This method checks all the properties.
-