Skip to content

Commit

Permalink
Polishing external contribution
Browse files Browse the repository at this point in the history
  • Loading branch information
poutsma committed Feb 29, 2024
1 parent beb415d commit 3370551
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -484,11 +484,11 @@ void acceptLanguage() {
new Locale.LanguageRange("*", 0.5)
);
assertThat(headers.getAcceptLanguage()).isEqualTo(expectedRanges);
assertThat(headers.getAcceptLanguageAsLocales()).isEqualTo(List.of(
assertThat(headers.getAcceptLanguageAsLocales()).containsExactly(
Locale.forLanguageTag("fr-ch"),
Locale.forLanguageTag("fr"),
Locale.forLanguageTag("en"),
Locale.forLanguageTag("de")));
Locale.forLanguageTag("de"));

headers.setAcceptLanguageAsLocales(Collections.singletonList(Locale.FRANCE));
assertThat(headers.getAcceptLanguageAsLocales()).first().isEqualTo(Locale.FRANCE);
Expand Down

0 comments on commit 3370551

Please sign in to comment.