FileDocCategorySizeDatePackage
EditRegistrationActionTest.javaAPI DocExample885Wed Oct 13 13:28:44 BST 2004com.oreilly.strutsckbk.ch13

EditRegistrationActionTest

public class EditRegistrationActionTest extends servletunit.struts.MockStrutsTestCase

Fields Summary
private static final String
ACTION_PATH
Constructors Summary
public EditRegistrationActionTest(String theName)

    
        
        super(theName);
    
Methods Summary
public voidsetUp()

        super.setUp();
        setConfigFile("/WEB-INF/struts-config-registration.xml");
        setRequestPathInfo(ACTION_PATH);
    
public voidtestCreateRegistration()

        addRequestParameter("action", "Create");

        actionPerform();

        String token = (String) getRequest().getAttribute(Globals.TRANSACTION_TOKEN_KEY);
        assertNotNull(token, "Token was not saved");

        verifyForward("success");