hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e..@apache.org
Subject svn commit: r1035142 - in /hadoop/common/trunk: CHANGES.txt src/test/core/org/apache/hadoop/fs/TestPath.java
Date Mon, 15 Nov 2010 04:57:06 GMT
Author: eli
Date: Mon Nov 15 04:57:05 2010
New Revision: 1035142

URL: http://svn.apache.org/viewvc?rev=1035142&view=rev
Log:
HADOOP-7034. Add TestPath tests to cover dot, dot dot, and slash normalization. Contributed
by Eli Collins

Modified:
    hadoop/common/trunk/CHANGES.txt
    hadoop/common/trunk/src/test/core/org/apache/hadoop/fs/TestPath.java

Modified: hadoop/common/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/CHANGES.txt?rev=1035142&r1=1035141&r2=1035142&view=diff
==============================================================================
--- hadoop/common/trunk/CHANGES.txt (original)
+++ hadoop/common/trunk/CHANGES.txt Mon Nov 15 04:57:05 2010
@@ -171,9 +171,9 @@ Trunk (unreleased changes)
     HADOOP-7024. Create a test method for adding file systems during tests.
     (Kan Zhang via jghoman)
 
-    HADOOP-6903 Make AbstractFSileSystem methods and some FileContext methods to be public
-    (Sanjay Radia via Sanjay Radia)
+    HADOOP-6903. Make AbstractFSileSystem methods and some FileContext methods to be public.
(Sanjay Radia via Sanjay Radia)
 
+    HADOOP-7034. Add TestPath tests to cover dot, dot dot, and slash normalization. (eli)
 
   OPTIMIZATIONS
 

Modified: hadoop/common/trunk/src/test/core/org/apache/hadoop/fs/TestPath.java
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/src/test/core/org/apache/hadoop/fs/TestPath.java?rev=1035142&r1=1035141&r2=1035142&view=diff
==============================================================================
--- hadoop/common/trunk/src/test/core/org/apache/hadoop/fs/TestPath.java (original)
+++ hadoop/common/trunk/src/test/core/org/apache/hadoop/fs/TestPath.java Mon Nov 15 04:57:05
2010
@@ -61,6 +61,9 @@ public class TestPath extends TestCase {
   }
 
   public void testNormalize() {
+    assertEquals("", new Path(".").toString());
+    assertEquals("..", new Path("..").toString());
+    assertEquals("/", new Path("/").toString());
     assertEquals("/", new Path("//").toString());
     assertEquals("/", new Path("///").toString());
     assertEquals("//foo/", new Path("//foo/").toString());



Mime
View raw message