FileDocCategorySizeDatePackage
StrutsTestCase.javaAPI DocExample1931Mon Jul 23 13:26:56 BST 2007org.apache.struts2

StrutsTestCase

public abstract class StrutsTestCase extends com.opensymphony.xwork2.XWorkTestCase
Base test case for JUnit testing Struts.

Fields Summary
Constructors Summary
Methods Summary
protected org.apache.struts2.dispatcher.DispatcherinitDispatcher(java.util.Map params)

        Dispatcher du = StrutsTestCaseHelper.initDispatcher(params);
        configurationManager = du.getConfigurationManager();
        configuration = configurationManager.getConfiguration();
        container = configuration.getContainer();
        return du;
    
protected voidsetUp()
Sets up the configuration settings, XWork configuration, and message resources

        super.setUp();
        initDispatcher(null);
    
protected voidtearDown()

        super.tearDown();
        StrutsTestCaseHelper.tearDown();