mirror of
https://github.com/apache/struts.git
synced 2026-08-07 07:37:20 +00:00
WW-5304 Drops deprecated methods and fields in ActionContext
This commit is contained in:
+2
-3
@@ -135,11 +135,10 @@ public class ActionsFromSpringTest extends XWorkTestCase {
|
||||
params.put("exposeProxy", "true");
|
||||
params.put("issueId", "S2-047");
|
||||
|
||||
HashMap<String, Object> extraContext = new HashMap<>();
|
||||
extraContext.put(ActionContext.PARAMETERS, HttpParameters.create(params).build());
|
||||
ActionContext extraContext = ActionContext.of().withParameters(HttpParameters.create(params).build());
|
||||
|
||||
ActionProxy proxy = actionProxyFactory.createActionProxy(null,
|
||||
"chaintoAOPedTestSubBeanAction", null, extraContext);
|
||||
"chaintoAOPedTestSubBeanAction", null, extraContext.getContextMap());
|
||||
|
||||
// when
|
||||
proxy.execute();
|
||||
|
||||
+1
-1
@@ -110,7 +110,7 @@ public class ActionAutowiringInterceptorTest extends XWorkTestCase {
|
||||
}
|
||||
|
||||
public void testIfApplicationContextIsNullThenBeanWillNotBeWiredUp() throws Exception {
|
||||
ActionContext.of(new HashMap<>())
|
||||
ActionContext.of()
|
||||
.withApplication(new HashMap<>())
|
||||
.bind();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user