Skip to content

Commit

Permalink
Merge pull request #409 from JCgH4164838Gh792C124B5/WW-5069_CPickPR404
Browse files Browse the repository at this point in the history
Cherry-Pick PR#404 into master
  • Loading branch information
lukaszlenart committed Apr 26, 2020
2 parents 3ccbcc6 + 9faa39c commit 387c203
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ public void testRangeValidation() throws Exception {
HashMap<String, Object> params = new HashMap<>();
params.put("date", date.getTime());
context.put(ActionContext.PARAMETERS, HttpParameters.create(params).build());
context.put(ActionContext.LOCALE, Locale.US); // Force US Locale for date conversion tests on JDK9+

ActionProxy proxy = actionProxyFactory.createActionProxy("", MockConfigurationProvider.VALIDATION_ACTION_NAME, null, context);
proxy.execute();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,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+
action = container.inject(VisitorValidatorTestAction.class);

TestBean bean = action.getBean();
Expand Down

0 comments on commit 387c203

Please sign in to comment.