File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
src/test/java/org/apache/commons/lang3 Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 5151import org .junit .jupiter .api .Test ;
5252import org .junit .jupiter .params .ParameterizedTest ;
5353import org .junit .jupiter .params .provider .ValueSource ;
54+ import org .junitpioneer .jupiter .DefaultLocale ;
5455import org .junitpioneer .jupiter .ReadsDefaultLocale ;
5556import org .junitpioneer .jupiter .WritesDefaultLocale ;
5657
@@ -3102,14 +3103,13 @@ public void testToRootLowerCase() {
31023103 assertNotEquals ("title" , "TITLE" .toLowerCase (TURKISH ));
31033104 assertEquals ("title" , "TITLE" .toLowerCase (Locale .ROOT ));
31043105 assertEquals ("title" , StringUtils .toRootLowerCase ("TITLE" ));
3105- // Make sure we are not using the default Locale:
3106- final Locale defaultLocale = Locale .getDefault ();
3107- try {
3108- Locale .setDefault (TURKISH );
3109- assertEquals ("title" , StringUtils .toRootLowerCase ("TITLE" ));
3110- } finally {
3111- Locale .setDefault (defaultLocale );
3112- }
3106+ }
3107+
3108+ @ Test
3109+ @ DefaultLocale ("tr" )
3110+ @ ReadsDefaultLocale
3111+ public void testToRootLowerCaseTurkish () {
3112+ assertEquals ("title" , StringUtils .toRootLowerCase ("TITLE" ));
31133113 }
31143114
31153115 @ Test
You can’t perform that action at this time.
0 commit comments