WW-4789 WW-3788 ActionContext refactoring

This commit is contained in:
Lukasz Lenart
2020-03-21 10:05:48 +01:00
parent 7ef0d779cb
commit f4aa4ee09a
111 changed files with 1422 additions and 1429 deletions
@@ -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);