SLING-1603 - implement new Resource methods in MockResource
git-svn-id: https://svn.apache.org/repos/asf/sling/branches/SLING-1603-engine@982914 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/test/java/org/apache/sling/engine/impl/request/SlingRequestPathInfoTest.java b/src/test/java/org/apache/sling/engine/impl/request/SlingRequestPathInfoTest.java
index 5a9d997..e10d5b5 100644
--- a/src/test/java/org/apache/sling/engine/impl/request/SlingRequestPathInfoTest.java
+++ b/src/test/java/org/apache/sling/engine/impl/request/SlingRequestPathInfoTest.java
@@ -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 @@
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");
+ }
+ }
}