sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdelacre...@apache.org
Subject svn commit: r653377 - /incubator/sling/trunk/sling/servlet-resolver/src/test/java/org/apache/sling/servlet/resolver/helper/LocationTestBase.java
Date Mon, 05 May 2008 09:22:02 GMT
Author: bdelacretaz
Date: Mon May  5 02:22:01 2008
New Revision: 653377

URL: http://svn.apache.org/viewvc?rev=653377&view=rev
Log:
SLING-387 - ScriptSelectionTest added, testHtmlPostSelectors fails

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

Modified: incubator/sling/trunk/sling/servlet-resolver/src/test/java/org/apache/sling/servlet/resolver/helper/LocationTestBase.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/sling/servlet-resolver/src/test/java/org/apache/sling/servlet/resolver/helper/LocationTestBase.java?rev=653377&r1=653376&r2=653377&view=diff
==============================================================================
--- incubator/sling/trunk/sling/servlet-resolver/src/test/java/org/apache/sling/servlet/resolver/helper/LocationTestBase.java
(original)
+++ incubator/sling/trunk/sling/servlet-resolver/src/test/java/org/apache/sling/servlet/resolver/helper/LocationTestBase.java
Mon May  5 02:22:01 2008
@@ -58,10 +58,16 @@
             resourceType);
         resourceResolver.addResource(resource);
 
-        request = new MockSlingHttpServletRequest(resourcePath, "print.a4",
-            "html", null, null);
-        request.setResourceResolver(resourceResolver);
-        request.setResource(resource);
+        request = makeRequest("GET", "print.a4", "html"); 
+    }
+    
+    protected MockSlingHttpServletRequest makeRequest(String method, String selectors, String
extension) {
+        final MockSlingHttpServletRequest result = 
+            new MockSlingHttpServletRequest(resourcePath, selectors, extension, null, null);
+        result.setMethod(method);
+        result.setResourceResolver(resourceResolver);
+        result.setResource(resource);
+        return result;
     }
 
     @Override



Mime
View raw message