Skip to content

Commit

Permalink
Merge pull request #404 from JCgH4164838Gh792C124B5/WW-5069
Browse files Browse the repository at this point in the history
Initial fix for WW-5069 (improve build behaviour JDK9+)

(cherry picked from commit 1526b36)
  • Loading branch information
lukaszlenart authored and JCgH4164838Gh792C124B5 committed Apr 26, 2020
1 parent 3ccbcc6 commit 9faa39c
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 9faa39c

Please sign in to comment.