FileDocCategorySizeDatePackage
TokenSessionStoreInterceptorTest.javaAPI DocExample1918Mon Jul 23 13:26:18 BST 2007org.apache.struts2.interceptor

TokenSessionStoreInterceptorTest

public class TokenSessionStoreInterceptorTest extends TokenInterceptorTest
Unit test for {@link TokenSessionStoreInterceptor}.

Fields Summary
Constructors Summary
Methods Summary
protected java.lang.StringgetActionName()

        return TestConfigurationProvider.TOKEN_SESSION_ACTION_NAME;
    
public voidtestCAllExecute2Times()

        ActionProxy proxy = buildProxy(getActionName());
        setToken(request);
        assertEquals(Action.SUCCESS, proxy.execute());

        ActionProxy proxy2 = buildProxy(getActionName());
        // must not call setToken
        // double post will just return success and render the same view as the first execute
        // see TokenInterceptor where a 2nd call will return invalid.token code instead
        assertEquals(Action.SUCCESS, proxy2.execute());