sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r783238 - in /incubator/sling/trunk/bundles/commons/testing/src/main/java/org/apache/sling/commons/testing: osgi/MockBundle.java sling/MockSlingHttpServletRequest.java
Date Wed, 10 Jun 2009 07:07:14 GMT
Author: cziegeler
Date: Wed Jun 10 07:07:12 2009
New Revision: 783238

URL: http://svn.apache.org/viewvc?rev=783238&view=rev
Log:
Add new methods from Bundle and SlingHttpServletRequest to avoid problems if used with newer
versions of the API.

Modified:
    incubator/sling/trunk/bundles/commons/testing/src/main/java/org/apache/sling/commons/testing/osgi/MockBundle.java
    incubator/sling/trunk/bundles/commons/testing/src/main/java/org/apache/sling/commons/testing/sling/MockSlingHttpServletRequest.java

Modified: incubator/sling/trunk/bundles/commons/testing/src/main/java/org/apache/sling/commons/testing/osgi/MockBundle.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/bundles/commons/testing/src/main/java/org/apache/sling/commons/testing/osgi/MockBundle.java?rev=783238&r1=783237&r2=783238&view=diff
==============================================================================
--- incubator/sling/trunk/bundles/commons/testing/src/main/java/org/apache/sling/commons/testing/osgi/MockBundle.java
(original)
+++ incubator/sling/trunk/bundles/commons/testing/src/main/java/org/apache/sling/commons/testing/osgi/MockBundle.java
Wed Jun 10 07:07:12 2009
@@ -22,11 +22,13 @@
 import java.net.URL;
 import java.util.Dictionary;
 import java.util.Enumeration;
+import java.util.Map;
 
 import org.osgi.framework.Bundle;
 import org.osgi.framework.BundleContext;
 import org.osgi.framework.BundleException;
 import org.osgi.framework.ServiceReference;
+import org.osgi.framework.Version;
 
 public class MockBundle implements Bundle {
 
@@ -130,4 +132,12 @@
 
     public void stop(int options) throws BundleException {
     }
+
+    public Map getSignerCertificates(int signersType) {
+        return null;
+    }
+
+    public Version getVersion() {
+        return null;
+    }
 }
\ No newline at end of file

Modified: incubator/sling/trunk/bundles/commons/testing/src/main/java/org/apache/sling/commons/testing/sling/MockSlingHttpServletRequest.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/bundles/commons/testing/src/main/java/org/apache/sling/commons/testing/sling/MockSlingHttpServletRequest.java?rev=783238&r1=783237&r2=783238&view=diff
==============================================================================
--- incubator/sling/trunk/bundles/commons/testing/src/main/java/org/apache/sling/commons/testing/sling/MockSlingHttpServletRequest.java
(original)
+++ incubator/sling/trunk/bundles/commons/testing/src/main/java/org/apache/sling/commons/testing/sling/MockSlingHttpServletRequest.java
Wed Jun 10 07:07:12 2009
@@ -379,4 +379,8 @@
     public void setCharacterEncoding(String env) {
 
     }
+
+    public <AdapterType> AdapterType adaptTo(Class<AdapterType> type) {
+        return null;
+    }
 }



Mime
View raw message