mirror of
https://github.com/apache/struts.git
synced 2026-08-07 23:57:03 +00:00
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:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user