jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1138504 - /jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/PathTest.java
Date Wed, 22 Jun 2011 15:29:28 GMT
Author: mduerig
Date: Wed Jun 22 15:29:28 2011
New Revision: 1138504

URL: http://svn.apache.org/viewvc?rev=1138504&view=rev
Log:
tests

Modified:
    jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/PathTest.java

Modified: jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/PathTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/PathTest.java?rev=1138504&r1=1138503&r2=1138504&view=diff
==============================================================================
--- jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/PathTest.java (original)
+++ jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/PathTest.java Wed
Jun 22 15:29:28 2011
@@ -48,6 +48,20 @@ public class PathTest extends TestCase {
         test("parent", "{x/y}child");
     }
 
+    public void testMore() {
+        String[] paths = {
+            "/foo",
+            "/foo/",
+            "/foo//",
+            "/foo///",
+            "foo",
+        };
+
+        for (String path : paths) {
+            assertEquals(path, PathUtils.concat(PathUtils.getParentPath(path), PathUtils.getName(path)));
+        }
+    }
+
     private void test(String parent, String child) {
 
         // split



Mime
View raw message