You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by lu...@apache.org on 2017/03/16 10:09:40 UTC

[06/12] struts git commit: Fixes test

Fixes test


Project: http://git-wip-us.apache.org/repos/asf/struts/repo
Commit: http://git-wip-us.apache.org/repos/asf/struts/commit/f912dab8
Tree: http://git-wip-us.apache.org/repos/asf/struts/tree/f912dab8
Diff: http://git-wip-us.apache.org/repos/asf/struts/diff/f912dab8

Branch: refs/heads/master
Commit: f912dab8f3c77ef9667370c57cf8d35cf0cf4a32
Parents: 4b022bf
Author: Lukasz Lenart <lu...@apache.org>
Authored: Wed Mar 15 09:18:24 2017 +0100
Committer: Lukasz Lenart <lu...@apache.org>
Committed: Wed Mar 15 09:18:24 2017 +0100

----------------------------------------------------------------------
 .../java/org/apache/struts2/interceptor/I18nInterceptorTest.java  | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/struts/blob/f912dab8/core/src/test/java/org/apache/struts2/interceptor/I18nInterceptorTest.java
----------------------------------------------------------------------
diff --git a/core/src/test/java/org/apache/struts2/interceptor/I18nInterceptorTest.java b/core/src/test/java/org/apache/struts2/interceptor/I18nInterceptorTest.java
index d8c5944..4bbaa46 100644
--- a/core/src/test/java/org/apache/struts2/interceptor/I18nInterceptorTest.java
+++ b/core/src/test/java/org/apache/struts2/interceptor/I18nInterceptorTest.java
@@ -24,6 +24,7 @@ import com.opensymphony.xwork2.Action;
 import com.opensymphony.xwork2.ActionContext;
 import com.opensymphony.xwork2.ActionInvocation;
 import com.opensymphony.xwork2.DefaultLocaleProvider;
+import com.opensymphony.xwork2.DefaultLocaleProviderFactory;
 import com.opensymphony.xwork2.mock.MockActionInvocation;
 import com.opensymphony.xwork2.mock.MockActionProxy;
 import junit.framework.TestCase;
@@ -217,7 +218,7 @@ public class I18nInterceptorTest extends TestCase {
 
     public void setUp() throws Exception {
         interceptor = new I18nInterceptor();
-        interceptor.setLocaleProvider(new DefaultLocaleProvider());
+        interceptor.setLocaleProviderFactory(new DefaultLocaleProviderFactory());
         interceptor.init();
         session = new HashMap();