Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.struts2.util
Class StrutsTestCaseHelper

    java.lang.Object
      org.apache.struts2.util.StrutsTestCaseHelper

    public class StrutsTestCaseHelper

extends Object

Generic test setup methods to be used with any unit testing framework.

Constructor Summary
`StrutsTestCaseHelper()`

Method Summary
`static Dispatcher` | `initDispatcher(javax.servlet.ServletContext ctx, Map<String,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`

Constructor Detail

### StrutsTestCaseHelper

    public StrutsTestCaseHelper()

Method Detail

### setUp

    public static void setUp()
                      throws Exception

  Sets up the configuration settings, XWork configuration, and message resources

  Throws:
    `Exception`

### initDispatcher

    public static Dispatcher initDispatcher(javax.servlet.ServletContext ctx,
                                            Map<String,String> params)

### tearDown

    public static void tearDown()
                         throws Exception

  Throws:
    `Exception`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000–2018 Apache Software Foundation. All rights reserved.