Class TestFormBeanConfig

java.lang.Object
org.apache.struts.config.TestFormBeanConfig

public class TestFormBeanConfig extends Object
Unit tests for the FormBeanConfig class. Currently only contains code to test the methods that support configuration inheritance.
Version:
$Rev$ $Date$
  • Field Details

    • config

      protected org.apache.struts.config.ModuleConfig config
      The ModuleConfig we'll use.
    • baseForm

      protected org.apache.struts.config.FormBeanConfig baseForm
      The common base we'll use.
  • Constructor Details

    • TestFormBeanConfig

      public TestFormBeanConfig()
  • Method Details

    • setUp

      @BeforeEach public void setUp()
      Set up instance variables required by this test case.
    • tearDown

      @AfterEach public void tearDown()
      Tear down instance variables required by this test case.
    • testCheckCircularInheritance

      @Test public void testCheckCircularInheritance()
      Basic check that shouldn't detect an error.
    • testCheckCircularInheritanceError

      @Test public void testCheckCircularInheritanceError()
      Basic check that SHOULD detect an error.
    • testProcessExtendsBaseFormExtends

      @Test public void testProcessExtendsBaseFormExtends() throws Exception
      Test that processExtends() makes sure that a base form's own extension has been processed.
      Throws:
      Exception
    • testProcessExtendsMissingBaseForm

      @Test public void testProcessExtendsMissingBaseForm()
      Make sure that correct exception is thrown if a base form can't be found.
    • testInheritFrom

      Test a typical form bean configuration extension where various properties should be inherited from a base form. This method checks all the properties.
      Throws:
      ClassNotFoundException
      IllegalAccessException
      InstantiationException
      InvocationTargetException