mirror of
https://github.com/apache/struts.git
synced 2026-08-06 07:06:58 +00:00
WW-4789 WW-3788 ActionContext refactoring
This commit is contained in:
@@ -520,13 +520,12 @@ public class JSONInterceptorTest extends StrutsTestCase {
|
||||
ActionContext context = ActionContext.getContext();
|
||||
ValueStack stack = context.getValueStack();
|
||||
|
||||
ActionContext.setContext(context);
|
||||
context.put(StrutsStatics.HTTP_REQUEST, this.request);
|
||||
context.put(StrutsStatics.HTTP_RESPONSE, this.response);
|
||||
context.setServletRequest(request);
|
||||
context.setServletResponse(response);
|
||||
|
||||
MockServletContext servletContext = new MockServletContext();
|
||||
|
||||
context.put(StrutsStatics.SERVLET_CONTEXT, servletContext);
|
||||
context.setServletContext(servletContext);
|
||||
this.invocation = new MockActionInvocationEx();
|
||||
this.invocation.setInvocationContext(context);
|
||||
this.invocation.setStack(stack);
|
||||
|
||||
Reference in New Issue
Block a user