commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject svn commit: r655255 - /commons/proper/lang/trunk/src/test/org/apache/commons/lang/SystemUtilsTest.java
Date Sun, 11 May 2008 06:25:41 GMT
Author: bayard
Date: Sat May 10 23:25:41 2008
New Revision: 655255

URL: http://svn.apache.org/viewvc?rev=655255&view=rev
Log:
Fixing the toLowerCase locale as we're looking for english text as per LANG-432

Modified:
    commons/proper/lang/trunk/src/test/org/apache/commons/lang/SystemUtilsTest.java

Modified: commons/proper/lang/trunk/src/test/org/apache/commons/lang/SystemUtilsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/org/apache/commons/lang/SystemUtilsTest.java?rev=655255&r1=655254&r2=655255&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/org/apache/commons/lang/SystemUtilsTest.java (original)
+++ commons/proper/lang/trunk/src/test/org/apache/commons/lang/SystemUtilsTest.java Sat May
10 23:25:41 2008
@@ -22,6 +22,7 @@
 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 @@
             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);



Mime
View raw message