This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to annotated tag 
org.apache.sling.testing.resourceresolver-mock-1.1.12
in repository 
https://gitbox.apache.org/repos/asf/sling-org-apache-sling-testing-resourceresolver-mock.git

commit 76e1653034dc004a995838ebd8c5ee6513dd98de
Author: Tomasz Rekawek <[email protected]>
AuthorDate: Fri Oct 16 10:26:07 2015 +0000

    SLING-5161 Support new resource resolver methods in the mocks
    
    git-svn-id: 
https://svn.apache.org/repos/asf/sling/trunk/testing/mocks/resourceresolver-mock@1708948
 13f79535-47bb-0310-9956-ffa450edef68
---
 .../testing/resourceresolver/MockResourceResolver.java   | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git 
a/src/main/java/org/apache/sling/testing/resourceresolver/MockResourceResolver.java
 
b/src/main/java/org/apache/sling/testing/resourceresolver/MockResourceResolver.java
index 34f7d7f..14210fb 100644
--- 
a/src/main/java/org/apache/sling/testing/resourceresolver/MockResourceResolver.java
+++ 
b/src/main/java/org/apache/sling/testing/resourceresolver/MockResourceResolver.java
@@ -405,4 +405,20 @@ public class MockResourceResolver extends SlingAdaptable 
implements ResourceReso
         throw new UnsupportedOperationException();
     }
 
+    public Resource getParent(Resource child) {
+        final String parentPath = ResourceUtil.getParent(child.getPath());
+        if (parentPath == null) {
+            return null;
+        }
+        return this.getResource(parentPath);
+    }
+
+    public void copy(String srcAbsPath, String destAbsPath) throws 
PersistenceException {
+        throw new UnsupportedOperationException();
+    }
+
+    public void move(String srcAbsPath, String destAbsPath) throws 
PersistenceException {
+        throw new UnsupportedOperationException();
+    }
+
 }

-- 
To stop receiving notification emails like this one, please contact
"[email protected]" <[email protected]>.

Reply via email to