diff --git a/plugins/rest/src/test/java/org/apache/struts2/rest/RestWorkflowInterceptorTest.java b/plugins/rest/src/test/java/org/apache/struts2/rest/RestWorkflowInterceptorTest.java index 4d04fe083..a7fe9b200 100644 --- a/plugins/rest/src/test/java/org/apache/struts2/rest/RestWorkflowInterceptorTest.java +++ b/plugins/rest/src/test/java/org/apache/struts2/rest/RestWorkflowInterceptorTest.java @@ -50,12 +50,12 @@ public class RestWorkflowInterceptorTest extends TestCase { mockContentTypeHandlerManager.expectAndReturn("handleResult", new AnyConstraintMatcher() { public boolean matches(Object[] args) { DefaultHttpHeaders headers = (DefaultHttpHeaders) args[1]; - return 666 == headers.status; + return 666 == headers.getStatus(); } }, null); wf.setContentTypeHandlerManager((ContentTypeHandlerManager) mockContentTypeHandlerManager.proxy()); - ActionContext.setContext(new ActionContext(new HashMap() {{ + ActionContext.setContext(new ActionContext(new HashMap() {{ put(ServletActionContext.ACTION_MAPPING, new ActionMapping()); }})); wf.doIntercept((ActionInvocation) mockActionInvocation.proxy());