Skip to content

Commit

Permalink
Fix locale for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nroduit committed Jul 26, 2024
1 parent 81566f2 commit 8021911
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
TestInstance.Lifecycle.PER_CLASS) // To enable BeforeAll and AfterAll for Locale.setDefault()
class DicomUtilsTest {

private static final String ORIGINAL_LANGUAGE = System.getProperty("user.language");
private static final String ORIGINAL_COUNTRY = System.getProperty("user.country");
private static final String ORIGINAL_LANGUAGE = System.getProperty("user.language", "en");
private static final String ORIGINAL_COUNTRY = System.getProperty("user.country", "US");

@BeforeAll
public void setUpAll() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
@TestInstance(
TestInstance.Lifecycle.PER_CLASS) // To enable BeforeAll and AfterAll for Locale.setDefault()
class AnatomicBuilderTest {
private static final String ORIGINAL_LANGUAGE = System.getProperty("user.language");
private static final String ORIGINAL_COUNTRY = System.getProperty("user.country");
private static final String ORIGINAL_LANGUAGE = System.getProperty("user.language", "en");
private static final String ORIGINAL_COUNTRY = System.getProperty("user.country", "US");

@BeforeAll
public void setUpAll() {
Expand Down

0 comments on commit 8021911

Please sign in to comment.