WW-4789 WW-3788 Adjusts after rebase

This commit is contained in:
Lukasz Lenart
2020-04-05 07:45:55 +02:00
parent 1bfa1ce6d1
commit 81b069b3f1
@@ -134,12 +134,12 @@ public abstract class StrutsTestCasePortletTests extends XWorkTestCase {
initSession(actionContext);
applyAdditionalParams(actionContext);
// set the action context to the one used by the proxy
ActionContext.setContext(actionContext);
ActionContext.bind(actionContext);
}
protected void initSession(ActionContext actionContext) {
if (actionContext.getSession() == null) {
actionContext.setSession(new HashMap<String, Object>());
actionContext.setSession(new HashMap<>());
request.setSession(new MockHttpSession(servletContext));
}
}