You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by lu...@apache.org on 2013/01/28 07:14:30 UTC
svn commit: r1439265 -
/struts/struts2/trunk/plugins/rest/src/test/java/org/apache/struts2/rest/RestWorkflowInterceptorTest.java
Author: lukaszlenart
Date: Mon Jan 28 06:14:30 2013
New Revision: 1439265
URL: http://svn.apache.org/viewvc?rev=1439265&view=rev
Log:
WW-3492 uses getter instead direct field access
Modified:
struts/struts2/trunk/plugins/rest/src/test/java/org/apache/struts2/rest/RestWorkflowInterceptorTest.java
Modified: struts/struts2/trunk/plugins/rest/src/test/java/org/apache/struts2/rest/RestWorkflowInterceptorTest.java
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/plugins/rest/src/test/java/org/apache/struts2/rest/RestWorkflowInterceptorTest.java?rev=1439265&r1=1439264&r2=1439265&view=diff
==============================================================================
--- struts/struts2/trunk/plugins/rest/src/test/java/org/apache/struts2/rest/RestWorkflowInterceptorTest.java (original)
+++ struts/struts2/trunk/plugins/rest/src/test/java/org/apache/struts2/rest/RestWorkflowInterceptorTest.java Mon Jan 28 06:14:30 2013
@@ -50,12 +50,12 @@ public class RestWorkflowInterceptorTest
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());