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 2010/08/06 11:26:11 UTC
svn commit: r982914 -
/sling/branches/SLING-1603-engine/src/test/java/org/apache/sling/engine/impl/request/SlingRequestPathInfoTest.java
Author: bdelacretaz
Date: Fri Aug 6 09:26:09 2010
New Revision: 982914
URL: http://svn.apache.org/viewvc?rev=982914&view=rev
Log:
SLING-1603 - implement new Resource methods in MockResource
Modified:
sling/branches/SLING-1603-engine/src/test/java/org/apache/sling/engine/impl/request/SlingRequestPathInfoTest.java
Modified: sling/branches/SLING-1603-engine/src/test/java/org/apache/sling/engine/impl/request/SlingRequestPathInfoTest.java
URL: http://svn.apache.org/viewvc/sling/branches/SLING-1603-engine/src/test/java/org/apache/sling/engine/impl/request/SlingRequestPathInfoTest.java?rev=982914&r1=982913&r2=982914&view=diff
==============================================================================
--- sling/branches/SLING-1603-engine/src/test/java/org/apache/sling/engine/impl/request/SlingRequestPathInfoTest.java (original)
+++ sling/branches/SLING-1603-engine/src/test/java/org/apache/sling/engine/impl/request/SlingRequestPathInfoTest.java Fri Aug 6 09:26:09 2010
@@ -16,6 +16,8 @@
*/
package org.apache.sling.engine.impl.request;
+import java.util.Iterator;
+
import junit.framework.TestCase;
import org.apache.sling.api.request.RequestDispatcherOptions;
@@ -317,6 +319,24 @@ public class SlingRequestPathInfoTest ex
return null;
}
- }
+ public boolean isResourceType(String str) {
+ throw new Error("MockResource does not implement this method");
+ }
+
+ public Resource getChild(String str) {
+ throw new Error("MockResource does not implement this method");
+ }
+
+ public Iterator<Resource> listChildren() {
+ throw new Error("MockResource does not implement this method");
+ }
+
+ public Resource getParent() {
+ throw new Error("MockResource does not implement this method");
+ }
+ public String getName() {
+ throw new Error("MockResource does not implement this method");
+ }
+ }
}