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 2020/04/30 08:03:40 UTC
[struts] branch action-context-boost updated: WW-4789 WW-3788 Fixes
test after reverse merge
This is an automated email from the ASF dual-hosted git repository.
lukaszlenart pushed a commit to branch action-context-boost
in repository https://gitbox.apache.org/repos/asf/struts.git
The following commit(s) were added to refs/heads/action-context-boost by this push:
new 567ad9c WW-4789 WW-3788 Fixes test after reverse merge
567ad9c is described below
commit 567ad9cdf1a746e77f905e16f9f375773fd6e01b
Author: Lukasz Lenart <lu...@apache.org>
AuthorDate: Thu Apr 30 10:03:33 2020 +0200
WW-4789 WW-3788 Fixes test after reverse merge
---
.../com/opensymphony/xwork2/validator/VisitorFieldValidatorTest.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/core/src/test/java/com/opensymphony/xwork2/validator/VisitorFieldValidatorTest.java b/core/src/test/java/com/opensymphony/xwork2/validator/VisitorFieldValidatorTest.java
index 9f4f0cb..76c2eac 100644
--- a/core/src/test/java/com/opensymphony/xwork2/validator/VisitorFieldValidatorTest.java
+++ b/core/src/test/java/com/opensymphony/xwork2/validator/VisitorFieldValidatorTest.java
@@ -32,6 +32,7 @@ import java.util.Calendar;
import java.util.GregorianCalendar;
import java.util.HashMap;
import java.util.List;
+import java.util.Locale;
import java.util.Map;
/**
@@ -48,7 +49,7 @@ public class VisitorFieldValidatorTest extends XWorkTestCase {
public void setUp() throws Exception {
super.setUp();
- ActionContext.getContext().put(ActionContext.LOCALE, Locale.US); // Force US Locale for date conversion tests on JDK9+
+ ActionContext.getContext().withLocale(Locale.US); // Force US Locale for date conversion tests on JDK9+
action = container.inject(VisitorValidatorTestAction.class);
TestBean bean = action.getBean();