SLING-3244 - upgrade sling.api in commons/testing

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1541469 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/pom.xml b/pom.xml
index 2b5b5ba..aeb98b6 100644
--- a/pom.xml
+++ b/pom.xml
@@ -69,7 +69,7 @@
         <dependency>
             <groupId>org.apache.sling</groupId>
             <artifactId>org.apache.sling.api</artifactId>
-            <version>2.1.0</version>
+            <version>2.4.2</version>
             <scope>compile</scope>
         </dependency>
         <dependency>
diff --git a/src/main/java/org/apache/sling/commons/testing/sling/MockRequestPathInfo.java b/src/main/java/org/apache/sling/commons/testing/sling/MockRequestPathInfo.java
index 60e14ab..12e2645 100644
--- a/src/main/java/org/apache/sling/commons/testing/sling/MockRequestPathInfo.java
+++ b/src/main/java/org/apache/sling/commons/testing/sling/MockRequestPathInfo.java
@@ -19,9 +19,14 @@
 package org.apache.sling.commons.testing.sling;
 
 import org.apache.sling.api.request.RequestPathInfo;
+import org.apache.sling.api.resource.Resource;
 
 class MockRequestPathInfo implements RequestPathInfo {
 
+    public Resource getSuffixResource() {
+        return null;
+    }
+
     private final String selectors;
 
     private final String extension;
diff --git a/src/main/java/org/apache/sling/commons/testing/sling/MockResourceResolver.java b/src/main/java/org/apache/sling/commons/testing/sling/MockResourceResolver.java
index 08c6bdf..c98d083 100644
--- a/src/main/java/org/apache/sling/commons/testing/sling/MockResourceResolver.java
+++ b/src/main/java/org/apache/sling/commons/testing/sling/MockResourceResolver.java
@@ -27,6 +27,7 @@
 import javax.servlet.http.HttpServletRequest;
 
 import org.apache.sling.api.resource.LoginException;
+import org.apache.sling.api.resource.PersistenceException;
 import org.apache.sling.api.resource.Resource;
 import org.apache.sling.api.resource.ResourceResolver;
 
@@ -175,17 +176,51 @@
 
     public ResourceResolver clone(Map<String, Object> authenticationInfo)
     throws LoginException {
-        // TODO Auto-generated method stub
         return null;
     }
 
     public Object getAttribute(String name) {
-        // TODO Auto-generated method stub
         return null;
     }
 
     public Iterator<String> getAttributeNames() {
-        // TODO Auto-generated method stub
         return null;
     }
+
+    public void commit() throws PersistenceException {
+    }
+
+    public Resource create(Resource arg0, String arg1, Map<String, Object> arg2)
+            throws PersistenceException {
+        return null;
+    }
+
+    public void delete(Resource arg0) throws PersistenceException {
+    }
+
+    public Iterable<Resource> getChildren(Resource arg0) {
+        return null;
+    }
+
+    public String getParentResourceType(Resource arg0) {
+        return null;
+    }
+
+    public String getParentResourceType(String arg0) {
+        return null;
+    }
+
+    public boolean hasChanges() {
+        return false;
+    }
+
+    public boolean isResourceType(Resource arg0, String arg1) {
+        return false;
+    }
+
+    public void refresh() {
+    }
+
+    public void revert() {
+    }
 }