File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
src/test/java/de/doubleslash/keeptime/common Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ void zeroSecondsBetweenTest() {
4747 @ Test
4848 void applySystemLocaleShouldSetDatePickerLocale () {
4949 // GIVEN
50+ Locale defaultLocale = Locale .getDefault ();
5051 Locale .setDefault (Locale .ENGLISH );
5152 DateFormatter .setSystemLocale (Locale .GERMAN );
5253 DatePicker datePicker = new DatePicker ();
@@ -58,6 +59,9 @@ void applySystemLocaleShouldSetDatePickerLocale() {
5859
5960 // THEN
6061 String shown = datePicker .getEditor ().getText ();
61- assertTrue (shown .contains ("Montag" ) || shown .contains ("06.2024" ) || shown .contains ("06" ));
62+ assertTrue (shown .contains ("Montag" ));
63+ assertTrue (shown .contains ("06.2024" ));
64+
65+ Locale .setDefault (defaultLocale );
6266 }
6367}
You can’t perform that action at this time.
0 commit comments