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> TcreateAction(Class<T> clazz) A helper method which allows instantiate an action if this action extendsActionSupportor any other action class that requires framework's dependencies injection.protected DispatcherinitDispatcher(Map<String, String> params) protected voidsetUp()protected voidtearDown()Methods inherited from class org.apache.struts2.testng.TestNGXWorkTestCase
loadConfigurationProviders
-
Constructor Details
-
TestNGStrutsTestCase
public TestNGStrutsTestCase()
-
-
Method Details
-
setUp
- Overrides:
setUpin classTestNGXWorkTestCase- Throws:
Exception
-
initDispatcher
-
createAction
A helper method which allows instantiate an action if this action extendsActionSupportor any other action class that requires framework's dependencies injection. -
tearDown
- Overrides:
tearDownin classTestNGXWorkTestCase- Throws:
Exception
-