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
This commit is contained in:
Lukasz Lenart
2013-01-28 06:14:30 +00:00
parent c9f2977902
commit f852cacfee
@@ -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<String, Object>() {{
put(ServletActionContext.ACTION_MAPPING, new ActionMapping());
}}));
wf.doIntercept((ActionInvocation) mockActionInvocation.proxy());