You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by bd...@apache.org on 2016/12/07 14:09:30 UTC
svn commit: r1773079 -
/sling/trunk/bundles/api/src/test/java/org/apache/sling/api/resource/path/PathTest.java
Author: bdelacretaz
Date: Wed Dec 7 14:09:30 2016
New Revision: 1773079
URL: http://svn.apache.org/viewvc?rev=1773079&view=rev
Log:
SLING-6350 - fix one test
Modified:
sling/trunk/bundles/api/src/test/java/org/apache/sling/api/resource/path/PathTest.java
Modified: sling/trunk/bundles/api/src/test/java/org/apache/sling/api/resource/path/PathTest.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/api/src/test/java/org/apache/sling/api/resource/path/PathTest.java?rev=1773079&r1=1773078&r2=1773079&view=diff
==============================================================================
--- sling/trunk/bundles/api/src/test/java/org/apache/sling/api/resource/path/PathTest.java (original)
+++ sling/trunk/bundles/api/src/test/java/org/apache/sling/api/resource/path/PathTest.java Wed Dec 7 14:09:30 2016
@@ -64,14 +64,12 @@ public class PathTest {
final Path path_3 = new Path("glob:/a/m-p/$structure/**/[cmp]/*.html");
assertTrue(path_3.matches("/a/m-p/$structure/1/2/3/[cmp]/test.html"));
+ assertTrue(path_3.matches("/a/m-p/$structure/1/2/3/4/5/6/[cmp]/test.html"));
assertTrue(path_3.matches("/a/m-p/$structure/1/[cmp]/test.html"));
assertTrue(path_3.matches("/a/m-p/$structure/1/[cmp]/te-[s]t$.html"));
assertTrue(path_3.matches("/a/m-p/$structure/1/[cmp]/.html"));
assertFalse(path_3.matches("/a/m-p/$structure/1/[cmp]/html"));
assertFalse(path_3.matches("/a/m-p/$structure/[cmp]/test.html"));
-
- // TODO this should be assertTrue?? as per SLING-6350
- assertFalse(path_3.matches("/a/m-p/$structure/1/2/3/4/5/6[cmp]/test.html"));
}
@Test public void testPatternRootMatching() {