incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdelacre...@apache.org
Subject svn commit: r1541469 - in /sling/trunk/bundles/commons/testing: pom.xml src/main/java/org/apache/sling/commons/testing/sling/MockRequestPathInfo.java src/main/java/org/apache/sling/commons/testing/sling/MockResourceResolver.java
Date Wed, 13 Nov 2013 11:00:20 GMT
Author: bdelacretaz
Date: Wed Nov 13 11:00:19 2013
New Revision: 1541469

URL: http://svn.apache.org/r1541469
Log:
SLING-3244 - upgrade sling.api in commons/testing

Modified:
    sling/trunk/bundles/commons/testing/pom.xml
    sling/trunk/bundles/commons/testing/src/main/java/org/apache/sling/commons/testing/sling/MockRequestPathInfo.java
    sling/trunk/bundles/commons/testing/src/main/java/org/apache/sling/commons/testing/sling/MockResourceResolver.java

Modified: sling/trunk/bundles/commons/testing/pom.xml
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/commons/testing/pom.xml?rev=1541469&r1=1541468&r2=1541469&view=diff
==============================================================================
--- sling/trunk/bundles/commons/testing/pom.xml (original)
+++ sling/trunk/bundles/commons/testing/pom.xml Wed Nov 13 11:00:19 2013
@@ -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>

Modified: sling/trunk/bundles/commons/testing/src/main/java/org/apache/sling/commons/testing/sling/MockRequestPathInfo.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/commons/testing/src/main/java/org/apache/sling/commons/testing/sling/MockRequestPathInfo.java?rev=1541469&r1=1541468&r2=1541469&view=diff
==============================================================================
--- sling/trunk/bundles/commons/testing/src/main/java/org/apache/sling/commons/testing/sling/MockRequestPathInfo.java
(original)
+++ sling/trunk/bundles/commons/testing/src/main/java/org/apache/sling/commons/testing/sling/MockRequestPathInfo.java
Wed Nov 13 11:00:19 2013
@@ -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;

Modified: sling/trunk/bundles/commons/testing/src/main/java/org/apache/sling/commons/testing/sling/MockResourceResolver.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/commons/testing/src/main/java/org/apache/sling/commons/testing/sling/MockResourceResolver.java?rev=1541469&r1=1541468&r2=1541469&view=diff
==============================================================================
--- sling/trunk/bundles/commons/testing/src/main/java/org/apache/sling/commons/testing/sling/MockResourceResolver.java
(original)
+++ sling/trunk/bundles/commons/testing/src/main/java/org/apache/sling/commons/testing/sling/MockResourceResolver.java
Wed Nov 13 11:00:19 2013
@@ -27,6 +27,7 @@ import java.util.NoSuchElementException;
 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 class MockResourceResolver implem
 
     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() {
+    }
 }



Mime
View raw message