Package org.apache.struts2.testng
Class TestNGStrutsTestCase
java.lang.Object
org.apache.struts2.testng.TestNGXWorkTestCase
org.apache.struts2.testng.TestNGStrutsTestCase
Base test class for TestNG unit tests. Provides common Struts variables
and performs Struts setup and teardown processes
-
Field Summary
Fields inherited from class org.apache.struts2.testng.TestNGXWorkTestCase
actionProxyFactory, configuration, configurationManager, container
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected <T> T
createAction
(Class<T> clazz) A helper method which allows instantiate an action if this action extendsActionSupport
or any other action class that requires framework's dependencies injection.protected Dispatcher
initDispatcher
(Map<String, String> params) protected void
setUp()
protected void
tearDown()
Methods inherited from class org.apache.struts2.testng.TestNGXWorkTestCase
loadConfigurationProviders
-
Constructor Details
-
TestNGStrutsTestCase
public TestNGStrutsTestCase()
-
-
Method Details
-
setUp
- Overrides:
setUp
in classTestNGXWorkTestCase
- Throws:
Exception
-
initDispatcher
-
createAction
A helper method which allows instantiate an action if this action extendsActionSupport
or any other action class that requires framework's dependencies injection. -
tearDown
- Overrides:
tearDown
in classTestNGXWorkTestCase
- Throws:
Exception
-