From 2c110e2a461dc2acfeede416df0182940d3c3b49 Mon Sep 17 00:00:00 2001 From: Lukasz Lenart Date: Mon, 5 Oct 2015 14:29:46 +0200 Subject: [PATCH] Fixes test --- .../java/com/opensymphony/xwork2/util/MyBeanActionTest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/src/test/java/com/opensymphony/xwork2/util/MyBeanActionTest.java b/core/src/test/java/com/opensymphony/xwork2/util/MyBeanActionTest.java index 0d8e6d96b..4250acf68 100644 --- a/core/src/test/java/com/opensymphony/xwork2/util/MyBeanActionTest.java +++ b/core/src/test/java/com/opensymphony/xwork2/util/MyBeanActionTest.java @@ -19,6 +19,7 @@ import com.opensymphony.xwork2.ActionContext; import com.opensymphony.xwork2.ActionProxy; import com.opensymphony.xwork2.XWorkTestCase; import com.opensymphony.xwork2.config.providers.XmlConfigurationProvider; +import org.apache.struts2.dispatcher.HttpParameters; import java.util.HashMap; import java.util.Map; @@ -36,7 +37,7 @@ public class MyBeanActionTest extends XWorkTestCase { params.put("beanList(1234567891).name", "This is the 2nd bla bean"); HashMap extraContext = new HashMap<>(); - extraContext.put(ActionContext.PARAMETERS, params); + extraContext.put(ActionContext.PARAMETERS, HttpParameters.create(params).build()); try { ActionProxy proxy = actionProxyFactory.createActionProxy("", "MyBean", null, extraContext); @@ -64,7 +65,7 @@ public class MyBeanActionTest extends XWorkTestCase { params.put("beanMap[1234567891].name", "This is the 2nd bla bean"); HashMap extraContext = new HashMap<>(); - extraContext.put(ActionContext.PARAMETERS, params); + extraContext.put(ActionContext.PARAMETERS, HttpParameters.create(params).build()); try { ActionProxy proxy = actionProxyFactory.createActionProxy("", "MyBean", null, extraContext);