jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject svn commit: r210096 - /incubator/jackrabbit/trunk/commons/src/test/org/apache/jackrabbit/name/PathTest.java
Date Mon, 11 Jul 2005 10:46:58 GMT
Author: stefan
Date: Mon Jul 11 03:46:55 2005
New Revision: 210096

URL: http://svn.apache.org/viewcvs?rev=210096&view=rev
Log:
JCR-144: Path parser does not allow trailing slashes

Modified:
    incubator/jackrabbit/trunk/commons/src/test/org/apache/jackrabbit/name/PathTest.java

Modified: incubator/jackrabbit/trunk/commons/src/test/org/apache/jackrabbit/name/PathTest.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/commons/src/test/org/apache/jackrabbit/name/PathTest.java?rev=210096&r1=210095&r2=210096&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/commons/src/test/org/apache/jackrabbit/name/PathTest.java (original)
+++ incubator/jackrabbit/trunk/commons/src/test/org/apache/jackrabbit/name/PathTest.java Mon
Jul 11 03:46:55 2005
@@ -63,6 +63,8 @@
         list.add(new Test("/prefix:name/prefix:name", NOR|VAL));
         list.add(new Test("/name[2]/name[2]", NOR|VAL));
         list.add(new Test("/prefix:name[2]/prefix:name[2]", NOR|VAL));
+        list.add(new Test("a/b/c/", "a/b/c", NOR|VAL));
+        list.add(new Test("/a/b/c/", "/a/b/c", NOR|VAL));
 
         // relative paths
         list.add(new Test("a/b/c", NOR|VAL));
@@ -72,7 +74,6 @@
 
         // invalid paths
         list.add(new Test(""));
-        list.add(new Test("/a/b/c/"));
         list.add(new Test(" /a/b/c/"));
         list.add(new Test("/a/b/c/ "));
         list.add(new Test("/:name/prefix:name"));
@@ -82,7 +83,6 @@
         list.add(new Test("/prefix : name"));
         list.add(new Test("/name[0]/name[2]"));
         list.add(new Test("/prefix:name[2]foo/prefix:name[2]"));
-        list.add(new Test("a/b/c/"));
         list.add(new Test(":name/prefix:name"));
         list.add(new Test("name[0]/name[2]"));
         list.add(new Test("prefix:name[2]foo/prefix:name[2]"));



Mime
View raw message