public class AnnotationValidationInterceptorTest extends org.apache.struts2.StrutsTestCase
Fields Summary
private AnnotationValidationInterceptor
interceptor
private com.mockobjects.dynamic.Mock
mockActionInvocation
private com.mockobjects.dynamic.Mock
mockActionProxy
private TestAction
test
Constructors Summary
Methods Summary
public void
setUp()
super.setUp();
test = new TestAction();
interceptor = new AnnotationValidationInterceptor();
mockActionInvocation = new Mock(ActionInvocation.class);
mockActionProxy = new Mock(ActionProxy.class);
mockActionInvocation.matchAndReturn("getProxy", (ActionProxy) mockActionProxy.proxy());
mockActionInvocation.matchAndReturn("getAction", test);
mockActionInvocation.expect("invoke");