Skip to content

Commit

Permalink
Fix Locale and TimeZone in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nroduit committed Jul 26, 2024
1 parent 2db4fe1 commit 46a5c4d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ jobs:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Set locale to fr_FR
run: sudo update-locale LANG=fr_FR.UTF-8
- name: Build and analyze
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ void getBodyPartsFromPredicate_returnsFilteredBodyParts() {
}

@Test
@DefaultLocale(language = "fr", country = "CH")
@DefaultLocale(language = "fr", country = "FR")
void getBodyPartFromCode() {
assertEquals(
BodyPart.values()[0], BodyPart.getBodyPartFromCode(BodyPart.values()[0].getCodeValue()));
Expand All @@ -56,7 +56,7 @@ void getBodyPartFromCode() {
}

@Test
@DefaultLocale(language = "fr", country = "CH")
@DefaultLocale(language = "fr", country = "FR")
void getBodyPartFromLegacyCode() {
assertEquals(
BodyPart.values()[0],
Expand Down Expand Up @@ -92,7 +92,7 @@ void getBodyPartFromCodeMeaning() {
}

@Test
@DefaultLocale(language = "fr", country = "CH")
@DefaultLocale(language = "fr", country = "FR")
void getAnatomicModifierFromCode() {
assertEquals(
AnatomicModifier.values()[0],
Expand All @@ -108,7 +108,7 @@ void getAnatomicModifierFromCode() {
}

@Test
@DefaultLocale(language = "fr", country = "CH")
@DefaultLocale(language = "fr", country = "FR")
void getSurfacePartFromCode() {
assertEquals(
SurfacePart.values()[0],
Expand Down Expand Up @@ -147,7 +147,7 @@ void getCodingScheme() {
}

@Test
@DefaultLocale(language = "fr", country = "CH")
@DefaultLocale(language = "fr", country = "FR")
void category() {
assertEquals("Sites anatomiques dermatologiques", Category.SURFACE.toString());

Expand Down

0 comments on commit 46a5c4d

Please sign in to comment.