incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdelacre...@apache.org
Subject svn commit: r653715 - /incubator/sling/trunk/sling/servlet-resolver/src/test/java/org/apache/sling/servlet/resolver/helper/ScriptSelectionTest.java
Date Tue, 06 May 2008 09:03:52 GMT
Author: bdelacretaz
Date: Tue May  6 02:03:51 2008
New Revision: 653715

URL: http://svn.apache.org/viewvc?rev=653715&view=rev
Log:
SLING-387 - more ScriptSelectionTest tests

Modified:
    incubator/sling/trunk/sling/servlet-resolver/src/test/java/org/apache/sling/servlet/resolver/helper/ScriptSelectionTest.java

Modified: incubator/sling/trunk/sling/servlet-resolver/src/test/java/org/apache/sling/servlet/resolver/helper/ScriptSelectionTest.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/sling/servlet-resolver/src/test/java/org/apache/sling/servlet/resolver/helper/ScriptSelectionTest.java?rev=653715&r1=653714&r2=653715&view=diff
==============================================================================
--- incubator/sling/trunk/sling/servlet-resolver/src/test/java/org/apache/sling/servlet/resolver/helper/ScriptSelectionTest.java
(original)
+++ incubator/sling/trunk/sling/servlet-resolver/src/test/java/org/apache/sling/servlet/resolver/helper/ScriptSelectionTest.java
Tue May  6 02:03:51 2008
@@ -74,6 +74,15 @@
         assertScript("GET", "print.a4", "html", SET_A, "/apps/foo/bar/print.esp");
     }
     
+    public void testHtmlGetSelectorsAndResourceLabel() {
+        final String [] scripts = {
+                "/apps/foo/bar/bar.esp",
+                "/apps/foo/bar/bar.print.esp"
+            };
+        // the bar.print.esp script is not used, it must be named bar.esp
+        assertScript("GET", "print.a4", "html", scripts, "/apps/foo/bar/bar.esp");
+    }
+    
     public void testHtmlGetSingleSelector() {
         assertScript("GET", "print", "html", SET_A, "/apps/foo/bar/print.esp");
     }



Mime
View raw message