Skip to content

Conversation

@jord1e
Copy link
Contributor

@jord1e jord1e commented Nov 13, 2021

The integration test was checking if DataFetchingEnvironment#getLocale()#getDisplayName() returned "German" when the locale passed to the ExecutionInput was Locale.GERMAN.

This PR changes the call to getDisplayName(Locale.ENGLISH). Making sure the system locale doesn't affect the test.

My Locale is nl_NL, so the test was comparing Duits ("German" in Dutch) to German (in English of course)

The integration test was checking if DataFetchingEnvironment#getLocale()#getDisplayName() returned "German" when the locale passed to the ExecutionInput was Locale.GERMAN. This commit changes the call to getDisplayName(Locale.ENGLISH). Making sure the system locale doesn't affect the test.
@bbakerman bbakerman added this to the 18.0 milestone Nov 15, 2021
@bbakerman bbakerman merged commit 4eed7c9 into graphql-java:master Nov 15, 2021
@bbakerman
Copy link
Member

Thanks for that

@jord1e jord1e deleted the fix-german-integration-test branch November 15, 2021 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants