mirror of
https://github.com/apache/struts.git
synced 2026-08-07 15:46:57 +00:00
WW-5304 Drops deprecated methods and fields in ActionContext
This commit is contained in:
@@ -136,7 +136,7 @@ public abstract class StrutsJUnit4TestCase<T> extends XWorkJUnit4TestCase {
|
||||
}
|
||||
|
||||
protected void initActionContext(ActionContext actionContext) {
|
||||
actionContext.setParameters(HttpParameters.create(request.getParameterMap()).build());
|
||||
actionContext.withParameters(HttpParameters.create(request.getParameterMap()).build());
|
||||
initSession(actionContext);
|
||||
// set the action context to the one used by the proxy
|
||||
ActionContext.bind(actionContext);
|
||||
|
||||
@@ -121,7 +121,7 @@ public class StrutsRestTestCase<T> extends StrutsJUnit4TestCase<T> {
|
||||
|
||||
ActionContext invocationContext = proxy.getInvocation().getInvocationContext();
|
||||
invocationContext.getContextMap().put(ServletActionContext.ACTION_MAPPING, mapping);
|
||||
invocationContext.setParameters(HttpParameters.create(request.getParameterMap()).build());
|
||||
invocationContext.withParameters(HttpParameters.create(request.getParameterMap()).build());
|
||||
// set the action context to the one used by the proxy
|
||||
ActionContext.bind(invocationContext);
|
||||
|
||||
|
||||
@@ -119,7 +119,7 @@ public abstract class StrutsTestCase extends XWorkTestCase {
|
||||
}
|
||||
|
||||
protected void initActionContext(ActionContext actionContext) {
|
||||
actionContext.setParameters(HttpParameters.create(request.getParameterMap()).build());
|
||||
actionContext.withParameters(HttpParameters.create(request.getParameterMap()).build());
|
||||
initSession(actionContext);
|
||||
applyAdditionalParams(actionContext);
|
||||
// set the action context to the one used by the proxy
|
||||
|
||||
Reference in New Issue
Block a user