harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r1000699 - /harmony/enhanced/java/trunk/classlib/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/FileTest.java
Date Fri, 24 Sep 2010 04:12:51 GMT
Author: tellison
Date: Fri Sep 24 04:12:50 2010
New Revision: 1000699

URL: http://svn.apache.org/viewvc?rev=1000699&view=rev
Log:
Simplify testcase so it doesn't depend upon any locale.

Modified:
    harmony/enhanced/java/trunk/classlib/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/FileTest.java

Modified: harmony/enhanced/java/trunk/classlib/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/FileTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/trunk/classlib/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/FileTest.java?rev=1000699&r1=1000698&r2=1000699&view=diff
==============================================================================
--- harmony/enhanced/java/trunk/classlib/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/FileTest.java
(original)
+++ harmony/enhanced/java/trunk/classlib/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/FileTest.java
Fri Sep 24 04:12:50 2010
@@ -1049,9 +1049,8 @@ public class FileTest extends TestCase {
      */
     public void test_hashCode() {
         // Regression for HARMONY-53
-        String mixedFname = "SoMe FiLeNaMe";
-        File mfile = new File(mixedFname);
-        File lfile = new File(mixedFname.toLowerCase());
+        File mfile = new File("SoMe FiLeNaMe"); // Mixed case
+        File lfile = new File("some filename"); // Lower case
 
         if (mfile.equals(lfile)) {
             assertTrue("Assert 0: wrong hashcode", mfile.hashCode() == lfile



Mime
View raw message