Package org.apache.struts2
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 Summary
Modifier and TypeFieldDescriptionprotected ActionProxyFactory
protected Configuration
protected ConfigurationManager
protected Container
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateContextWithLocale
(Locale locale) protected <T> void
loadButAdd
(Class<T> type, String name, T impl) protected <T> void
loadButAdd
(Class<T> type, T impl) protected void
loadButSet
(Map<String, ?> properties) protected void
loadConfigurationProviders
(ConfigurationProvider... providers) protected void
setStrutsConstant
(String constant, String value) protected void
setStrutsConstant
(Map<String, String> overwritePropeties) protected void
setUp()
protected void
tearDown()
Methods inherited from class junit.framework.TestCase
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toString
-
Field Details
-
configurationManager
-
configuration
-
container
-
actionProxyFactory
-
-
Constructor Details
-
XWorkTestCase
public XWorkTestCase()
-
-
Method Details