struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lukaszlen...@apache.org
Subject [06/12] struts git commit: Fixes test
Date Thu, 16 Mar 2017 10:09:40 GMT
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 <lukaszlenart@apache.org>
Authored: Wed Mar 15 09:18:24 2017 +0100
Committer: Lukasz Lenart <lukaszlenart@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();
 


Mime
View raw message