Fix typos.

This commit is contained in:
Gary Gregory 2020-06-22 09:29:31 -04:00
parent 64b2f90d20
commit 91dafbcea8
1 changed files with 4 additions and 4 deletions

View File

@ -3279,12 +3279,12 @@ public class StringUtilsTest {
assertEquals("title", "TITLE".toLowerCase(Locale.ROOT)); assertEquals("title", "TITLE".toLowerCase(Locale.ROOT));
assertEquals("title", StringUtils.toRootLowerCase("TITLE")); assertEquals("title", StringUtils.toRootLowerCase("TITLE"));
// Make sure we are not using the default Locale: // Make sure we are not using the default Locale:
final Locale defaultLocales = Locale.getDefault(); final Locale defaultLocale = Locale.getDefault();
try { try {
Locale.setDefault(TURKISH); Locale.setDefault(TURKISH);
assertEquals("title", StringUtils.toRootLowerCase("TITLE")); assertEquals("title", StringUtils.toRootLowerCase("TITLE"));
} finally { } finally {
Locale.setDefault(defaultLocales); Locale.setDefault(defaultLocale);
} }
} }
@ -3299,12 +3299,12 @@ public class StringUtilsTest {
assertEquals("TITLE", "title".toUpperCase(Locale.ROOT)); assertEquals("TITLE", "title".toUpperCase(Locale.ROOT));
assertEquals("TITLE", StringUtils.toRootUpperCase("title")); assertEquals("TITLE", StringUtils.toRootUpperCase("title"));
// Make sure we are not using the default Locale: // Make sure we are not using the default Locale:
final Locale defaultLocales = Locale.getDefault(); final Locale defaultLocale = Locale.getDefault();
try { try {
Locale.setDefault(TURKISH); Locale.setDefault(TURKISH);
assertEquals("TITLE", StringUtils.toRootUpperCase("title")); assertEquals("TITLE", StringUtils.toRootUpperCase("title"));
} finally { } finally {
Locale.setDefault(defaultLocales); Locale.setDefault(defaultLocale);
} }
} }