From f852cacfeeab602ee5a3be708b2b16d2e980e86c Mon Sep 17 00:00:00 2001 From: Lukasz Lenart Date: Mon, 28 Jan 2013 06:14:30 +0000 Subject: [PATCH] WW-3492 uses getter instead direct field access git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1439265 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/struts2/rest/RestWorkflowInterceptorTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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());