Skip to content

Commit

Permalink
chore: use english locale for tests (#1780) (#1781)
Browse files Browse the repository at this point in the history
Co-authored-by: Zhe Sun <[email protected]>

Co-authored-by: Sascha Ißbrücker <[email protected]>
Co-authored-by: Zhe Sun <[email protected]>
  • Loading branch information
3 people authored Jun 10, 2021
1 parent bdf5ae9 commit 8cda3f2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .mvn/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Maven configuration

## jvm.config

- Sets the default locale in the JVM to english, so that tests behave consistently regardless of the system locale
1 change: 1 addition & 0 deletions .mvn/jvm.config
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-Duser.language=en -Duser.country=US
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import static org.junit.Assert.assertNull;

import java.math.BigDecimal;
import java.util.Locale;

import org.junit.Assert;
import org.junit.Before;
Expand All @@ -33,6 +34,7 @@ public class BigDecimalFieldTest extends TextFieldTest {
@Before
public void init() {
field = new BigDecimalField();
field.setLocale(Locale.US);
}

@Override
Expand Down

0 comments on commit 8cda3f2

Please sign in to comment.