incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdelacre...@apache.org
Subject svn commit: r1490189 - in /sling/trunk/contrib/extensions/healthcheck/hc-sling: pom.xml src/test/java/org/apache/sling/hc/sling/MockResolver.java src/test/java/org/apache/sling/hc/sling/MockResource.java
Date Thu, 06 Jun 2013 08:16:47 GMT
Author: bdelacretaz
Date: Thu Jun  6 08:16:47 2013
New Revision: 1490189

URL: http://svn.apache.org/r1490189
Log:
SLING-2822 - use older sling.api which is good enough

Modified:
    sling/trunk/contrib/extensions/healthcheck/hc-sling/pom.xml
    sling/trunk/contrib/extensions/healthcheck/hc-sling/src/test/java/org/apache/sling/hc/sling/MockResolver.java
    sling/trunk/contrib/extensions/healthcheck/hc-sling/src/test/java/org/apache/sling/hc/sling/MockResource.java

Modified: sling/trunk/contrib/extensions/healthcheck/hc-sling/pom.xml
URL: http://svn.apache.org/viewvc/sling/trunk/contrib/extensions/healthcheck/hc-sling/pom.xml?rev=1490189&r1=1490188&r2=1490189&view=diff
==============================================================================
--- sling/trunk/contrib/extensions/healthcheck/hc-sling/pom.xml (original)
+++ sling/trunk/contrib/extensions/healthcheck/hc-sling/pom.xml Thu Jun  6 08:16:47 2013
@@ -80,7 +80,7 @@
         <dependency>
             <groupId>org.apache.sling</groupId>
             <artifactId>org.apache.sling.api</artifactId>
-            <version>2.4.0</version>
+            <version>2.1.0</version>
             <scope>provided</scope>
         </dependency>
         <dependency>

Modified: sling/trunk/contrib/extensions/healthcheck/hc-sling/src/test/java/org/apache/sling/hc/sling/MockResolver.java
URL: http://svn.apache.org/viewvc/sling/trunk/contrib/extensions/healthcheck/hc-sling/src/test/java/org/apache/sling/hc/sling/MockResolver.java?rev=1490189&r1=1490188&r2=1490189&view=diff
==============================================================================
--- sling/trunk/contrib/extensions/healthcheck/hc-sling/src/test/java/org/apache/sling/hc/sling/MockResolver.java
(original)
+++ sling/trunk/contrib/extensions/healthcheck/hc-sling/src/test/java/org/apache/sling/hc/sling/MockResolver.java
Thu Jun  6 08:16:47 2013
@@ -27,7 +27,6 @@ import javax.jcr.Session;
 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;
 import org.mockito.Matchers;
@@ -136,20 +135,6 @@ class MockResolver implements ResourceRe
     }
 
     @Override
-    public void commit() throws PersistenceException {
-    }
-
-    @Override
-    public Resource create(Resource arg0, String arg1, Map<String, Object> arg2)
-            throws PersistenceException {
-        return null;
-    }
-
-    @Override
-    public void delete(Resource arg0) throws PersistenceException {
-    }
-
-    @Override
     public Object getAttribute(String arg0) {
         return null;
     }
@@ -160,45 +145,12 @@ class MockResolver implements ResourceRe
     }
 
     @Override
-    public Iterable<Resource> getChildren(Resource arg0) {
-        return null;
-    }
-
-    @Override
-    public String getParentResourceType(Resource arg0) {
-        return null;
-    }
-
-    @Override
-    public String getParentResourceType(String arg0) {
-        return null;
-    }
-
-    @Override
     public String getUserID() {
         return null;
     }
 
     @Override
-    public boolean hasChanges() {
-        return false;
-    }
-
-    @Override
     public boolean isLive() {
         return false;
     }
-
-    @Override
-    public boolean isResourceType(Resource arg0, String arg1) {
-        return false;
-    }
-
-    @Override
-    public void refresh() {
-    }
-
-    @Override
-    public void revert() {
-    }
 }

Modified: sling/trunk/contrib/extensions/healthcheck/hc-sling/src/test/java/org/apache/sling/hc/sling/MockResource.java
URL: http://svn.apache.org/viewvc/sling/trunk/contrib/extensions/healthcheck/hc-sling/src/test/java/org/apache/sling/hc/sling/MockResource.java?rev=1490189&r1=1490188&r2=1490189&view=diff
==============================================================================
--- sling/trunk/contrib/extensions/healthcheck/hc-sling/src/test/java/org/apache/sling/hc/sling/MockResource.java
(original)
+++ sling/trunk/contrib/extensions/healthcheck/hc-sling/src/test/java/org/apache/sling/hc/sling/MockResource.java
Thu Jun  6 08:16:47 2013
@@ -112,11 +112,6 @@ class MockResource implements Resource {
     }
 
     @Override
-    public Iterable<Resource> getChildren() {
-        return null;
-    }
-
-    @Override
     public String getName() {
         return null;
     }



Mime
View raw message