Fixing the toLowerCase locale as we're looking for english text as per LANG-432
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@655255 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e1981a5d7b
commit
8fc1df0227
|
@ -22,6 +22,7 @@ package org.apache.commons.lang;
|
|||
import java.io.File;
|
||||
import java.lang.reflect.Constructor;
|
||||
import java.lang.reflect.Modifier;
|
||||
import java.util.Locale;
|
||||
|
||||
import junit.framework.Assert;
|
||||
import junit.framework.Test;
|
||||
|
@ -312,7 +313,7 @@ public class SystemUtilsTest extends TestCase {
|
|||
assertEquals(true, SystemUtils.IS_OS_SOLARIS);
|
||||
assertEquals(true, SystemUtils.IS_OS_UNIX);
|
||||
assertEquals(false, SystemUtils.IS_OS_WINDOWS);
|
||||
} else if (osName.toLowerCase().startsWith("linux")) {
|
||||
} else if (osName.toLowerCase(Locale.ENGLISH).startsWith("linux")) {
|
||||
assertEquals(true, SystemUtils.IS_OS_LINUX);
|
||||
assertEquals(true, SystemUtils.IS_OS_UNIX);
|
||||
assertEquals(false, SystemUtils.IS_OS_WINDOWS);
|
||||
|
|
Loading…
Reference in New Issue