org.apache.struts2.util
Class StrutsTestCaseHelper
java.lang.Object
org.apache.struts2.util.StrutsTestCaseHelper
public class StrutsTestCaseHelper
- extends java.lang.Object
Generic test setup methods to be used with any unit testing framework.
Method Summary |
static Dispatcher |
initDispatcher(javax.servlet.ServletContext ctx,
java.util.Map<java.lang.String,java.lang.String> params)
|
static void |
setUp()
Sets up the configuration settings, XWork configuration, and
message resources |
static void |
tearDown()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StrutsTestCaseHelper
public StrutsTestCaseHelper()
setUp
public static void setUp()
throws java.lang.Exception
- Sets up the configuration settings, XWork configuration, and
message resources
- Throws:
java.lang.Exception
initDispatcher
public static Dispatcher initDispatcher(javax.servlet.ServletContext ctx,
java.util.Map<java.lang.String,java.lang.String> params)
tearDown
public static void tearDown()
throws java.lang.Exception
- Throws:
java.lang.Exception
Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.