Class TestMockBase

java.lang.Object
org.apache.struts.mock.TestMockBase
Direct Known Subclasses:
TestActionConfigMatcher, TestCommonsMultipartRequestHandler, TestDynaValidatorForm, TestRequestUtils, TestRequestUtilsPopulate, TestResponseUtils, TestValidatorForm

public class TestMockBase extends Object
Convenience base class for unit tests of the org.apache.struts.mock package, and others that require a runtime environment similar to what the Struts controller servlet sets up. The setUp() method establishes a consistent basic environment for the various tests. The only tests included in this class are simple validations that the basic environment was set up correctly.
Version:
$Rev$ $Date$
  • Field Details

  • Constructor Details

    • TestMockBase

      public TestMockBase()
  • Method Details

    • setUp

      @BeforeEach public void setUp()
    • setUpDefaultApp

      protected void setUpDefaultApp()
    • setUpSecondApp

      protected void setUpSecondApp()
    • setUpThirdApp

      protected void setUpThirdApp()
    • tearDown

      @AfterEach public void tearDown()
    • testUtilBaseEnvironment

      @Test public void testUtilBaseEnvironment()