harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mloe...@apache.org
Subject svn commit: r405705 - /incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/org/apache/harmony/tests/java/io/FileTest.java
Date Wed, 10 May 2006 10:20:42 GMT
Author: mloenko
Date: Wed May 10 03:20:24 2006
New Revision: 405705

URL: http://svn.apache.org/viewcvs?rev=405705&view=rev
Log:
regression test for Harmony-444

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

Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/org/apache/harmony/tests/java/io/FileTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/org/apache/harmony/tests/java/io/FileTest.java?rev=405705&r1=405704&r2=405705&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/org/apache/harmony/tests/java/io/FileTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/org/apache/harmony/tests/java/io/FileTest.java
Wed May 10 03:20:24 2006
@@ -81,4 +81,19 @@
 			assertFalse("Assert 1: wrong hashcode", mfile.hashCode() == lfile.hashCode());
 		}
 	}
+
+    /**
+     * @tests java.io.File#getPath()
+     */
+    public void test_getPath() {
+        // Regression for HARMONY-444
+        File file;
+        String separator = File.separator;
+
+        file = new File((File) null, "x/y/z");
+        assertEquals("x" + separator + "y" + separator + "z", file.getPath());
+
+        file = new File((String) null, "x/y/z");
+        assertEquals("x" + separator + "y" + separator + "z", file.getPath());
+    }
 }



Mime
View raw message