incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r726722 - /incubator/sling/trunk/commons/testing/src/main/java/org/apache/sling/commons/testing/sling/MockResourceResolver.java
Date Mon, 15 Dec 2008 15:56:26 GMT
Author: cziegeler
Date: Mon Dec 15 07:56:25 2008
New Revision: 726722

URL: http://svn.apache.org/viewvc?rev=726722&view=rev
Log:
Implement added methods of resource resolver interface.

Modified:
    incubator/sling/trunk/commons/testing/src/main/java/org/apache/sling/commons/testing/sling/MockResourceResolver.java

Modified: incubator/sling/trunk/commons/testing/src/main/java/org/apache/sling/commons/testing/sling/MockResourceResolver.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/commons/testing/src/main/java/org/apache/sling/commons/testing/sling/MockResourceResolver.java?rev=726722&r1=726721&r2=726722&view=diff
==============================================================================
--- incubator/sling/trunk/commons/testing/src/main/java/org/apache/sling/commons/testing/sling/MockResourceResolver.java
(original)
+++ incubator/sling/trunk/commons/testing/src/main/java/org/apache/sling/commons/testing/sling/MockResourceResolver.java
Mon Dec 15 07:56:25 2008
@@ -147,8 +147,16 @@
                 if (!entry.endsWith("/")) {
                     entry = entry.concat("/");
                 }
-                this.searchPath[i] = entry; 
+                this.searchPath[i] = entry;
             }
         }
     }
+
+    public String map(HttpServletRequest request, String resourcePath) {
+        return resourcePath;
+    }
+
+    public Resource resolve(HttpServletRequest request, String absPath) {
+        throw new UnsupportedOperationException("Not implemented");
+    }
 }



Mime
View raw message