incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdelacre...@apache.org
Subject svn commit: r1512320 - /sling/trunk/bundles/engine/src/test/java/org/apache/sling/engine/impl/request/SlingRequestPathInfoTest.java
Date Fri, 09 Aug 2013 14:23:41 GMT
Author: bdelacretaz
Date: Fri Aug  9 14:23:40 2013
New Revision: 1512320

URL: http://svn.apache.org/r1512320
Log:
testDotsAroundSuffix added

Modified:
    sling/trunk/bundles/engine/src/test/java/org/apache/sling/engine/impl/request/SlingRequestPathInfoTest.java

Modified: sling/trunk/bundles/engine/src/test/java/org/apache/sling/engine/impl/request/SlingRequestPathInfoTest.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/engine/src/test/java/org/apache/sling/engine/impl/request/SlingRequestPathInfoTest.java?rev=1512320&r1=1512319&r2=1512320&view=diff
==============================================================================
--- sling/trunk/bundles/engine/src/test/java/org/apache/sling/engine/impl/request/SlingRequestPathInfoTest.java
(original)
+++ sling/trunk/bundles/engine/src/test/java/org/apache/sling/engine/impl/request/SlingRequestPathInfoTest.java
Fri Aug  9 14:23:40 2013
@@ -213,6 +213,15 @@ public class SlingRequestPathInfoTest ex
         assertEquals("/some/suffix", p.getSuffix());
     }
 
+    public void testDotsAroundSuffix() {
+        RequestPathInfo p = new SlingRequestPathInfo(new MockResource(
+            "/libs/foo/content/something/formitems", ".json/image/vnd/xnd/knd.xml"));
+        assertEquals("/libs/foo/content/something/formitems", p.getResourcePath());
+        assertEquals("json", p.getExtension());
+        assertNull("Selectors are null",p.getSelectorString());
+        assertEquals("/image/vnd/xnd/knd.xml", p.getSuffix());
+    }
+
     public void testJIRA_250_a() {
         RequestPathInfo p = new SlingRequestPathInfo(new MockResource(
             "/bunkai", ".1.json"));



Mime
View raw message