FileDocCategorySizeDatePackage
ServletDispatchedTestAssertInterceptor.javaAPI DocExample1833Mon Jul 23 13:26:12 BST 2007org.apache.struts2.dispatcher

ServletDispatchedTestAssertInterceptor

public class ServletDispatchedTestAssertInterceptor extends Object implements com.opensymphony.xwork2.interceptor.Interceptor

Fields Summary
private static final long
serialVersionUID
Constructors Summary
public ServletDispatchedTestAssertInterceptor()


      
        super();
    
Methods Summary
public voiddestroy()

    
public voidinit()

    
public java.lang.Stringintercept(com.opensymphony.xwork2.ActionInvocation invocation)

        Assert.assertTrue(invocation.getAction() instanceof TestAction);

        TestAction testAction = (TestAction) invocation.getAction();

        Assert.assertEquals("bar", testAction.getFoo());

        String result = invocation.invoke();

        return result;