Class XWorkTestCase

java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.apache.struts2.XWorkTestCase
All Implemented Interfaces:
junit.framework.Test

public abstract class XWorkTestCase extends junit.framework.TestCase
Base JUnit TestCase to extend for XWork specific JUnit tests. Uses the generic test setup for logic.
Author:
plightbo
  • Field Details

  • Constructor Details

    • XWorkTestCase

      public XWorkTestCase()
  • Method Details

    • setUp

      protected void setUp() throws Exception
      Overrides:
      setUp in class junit.framework.TestCase
      Throws:
      Exception
    • tearDown

      protected void tearDown() throws Exception
      Overrides:
      tearDown in class junit.framework.TestCase
      Throws:
      Exception
    • loadConfigurationProviders

      protected void loadConfigurationProviders(ConfigurationProvider... providers)
    • loadButSet

      protected void loadButSet(Map<String,?> properties)
    • loadButAdd

      protected <T> void loadButAdd(Class<T> type, T impl)
    • loadButAdd

      protected <T> void loadButAdd(Class<T> type, String name, T impl)
    • createContextWithLocale

      protected Map<String,Object> createContextWithLocale(Locale locale)
    • setStrutsConstant

      protected void setStrutsConstant(String constant, String value)
    • setStrutsConstant

      protected void setStrutsConstant(Map<String,String> overwritePropeties)