incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r1345670 - /sling/whiteboard/SLING-2396/resourceresolver/src/test/java/org/apache/sling/resourceresolver/impl/helper/ResourceProviderEntryTest.java
Date Sun, 03 Jun 2012 13:30:31 GMT
Author: cziegeler
Date: Sun Jun  3 13:30:30 2012
New Revision: 1345670

URL: http://svn.apache.org/viewvc?rev=1345670&view=rev
Log:
SLING-2396 : Add new resource provider interfaces (WiP)

Modified:
    sling/whiteboard/SLING-2396/resourceresolver/src/test/java/org/apache/sling/resourceresolver/impl/helper/ResourceProviderEntryTest.java

Modified: sling/whiteboard/SLING-2396/resourceresolver/src/test/java/org/apache/sling/resourceresolver/impl/helper/ResourceProviderEntryTest.java
URL: http://svn.apache.org/viewvc/sling/whiteboard/SLING-2396/resourceresolver/src/test/java/org/apache/sling/resourceresolver/impl/helper/ResourceProviderEntryTest.java?rev=1345670&r1=1345669&r2=1345670&view=diff
==============================================================================
--- sling/whiteboard/SLING-2396/resourceresolver/src/test/java/org/apache/sling/resourceresolver/impl/helper/ResourceProviderEntryTest.java
(original)
+++ sling/whiteboard/SLING-2396/resourceresolver/src/test/java/org/apache/sling/resourceresolver/impl/helper/ResourceProviderEntryTest.java
Sun Jun  3 13:30:30 2012
@@ -47,7 +47,7 @@ public class ResourceProviderEntryTest e
 
         rootProvider = new TestResourceProvider("/");
         final Map<String, Object> props = new HashMap<String, Object>();
-        props.put(Constants.SERVICE_ID, "the.root");
+        props.put(Constants.SERVICE_ID, (long)0);
         root = new ResourceProviderEntry("/", new ResourceProviderHandler[]{ new ResourceProviderHandler(rootProvider,
props)});
     }
 
@@ -70,7 +70,7 @@ public class ResourceProviderEntryTest e
         String firstPath = "/rootel";
         ResourceProvider first = new TestResourceProvider(firstPath);
         final Map<String, Object> firstProps = new HashMap<String, Object>();
-        firstProps.put(Constants.SERVICE_ID, "first");
+        firstProps.put(Constants.SERVICE_ID, (long)1);
         root.addResourceProvider(firstPath, new ResourceProviderHandler(first, firstProps));
 
 
@@ -94,11 +94,11 @@ public class ResourceProviderEntryTest e
         ResourceProvider second = new TestResourceProvider(secondPath);
         ResourceProvider third = new TestResourceProvider(thirdPath);
         final Map<String, Object> firstProps = new HashMap<String, Object>();
-        firstProps.put(Constants.SERVICE_ID, "first");
+        firstProps.put(Constants.SERVICE_ID, (long)1);
         final Map<String, Object> secondProps = new HashMap<String, Object>();
-        secondProps.put(Constants.SERVICE_ID, "second");
+        secondProps.put(Constants.SERVICE_ID, (long)2);
         final Map<String, Object> thirdProps = new HashMap<String, Object>();
-        thirdProps.put(Constants.SERVICE_ID, "third");
+        thirdProps.put(Constants.SERVICE_ID, (long)3);
 
         root.addResourceProvider(firstPath, new ResourceProviderHandler(first, firstProps));
         root.addResourceProvider(secondPath, new ResourceProviderHandler(second, secondProps));
@@ -126,11 +126,11 @@ public class ResourceProviderEntryTest e
         ResourceProvider second = new TestResourceProvider(secondPath);
         ResourceProvider third = new TestResourceProvider(thirdPath);
         final Map<String, Object> firstProps = new HashMap<String, Object>();
-        firstProps.put(Constants.SERVICE_ID, "first");
+        firstProps.put(Constants.SERVICE_ID, (long)1);
         final Map<String, Object> secondProps = new HashMap<String, Object>();
-        secondProps.put(Constants.SERVICE_ID, "second");
+        secondProps.put(Constants.SERVICE_ID, (long)2);
         final Map<String, Object> thirdProps = new HashMap<String, Object>();
-        thirdProps.put(Constants.SERVICE_ID, "third");
+        thirdProps.put(Constants.SERVICE_ID, (long)3);
 
         root.addResourceProvider(firstPath, new ResourceProviderHandler(first, firstProps));
         root.addResourceProvider(secondPath, new ResourceProviderHandler(second, secondProps));
@@ -157,11 +157,11 @@ public class ResourceProviderEntryTest e
         ResourceProvider second = new TestResourceProvider(secondPath);
         ResourceProvider third = new TestResourceProvider(thirdPath);
         final Map<String, Object> firstProps = new HashMap<String, Object>();
-        firstProps.put(Constants.SERVICE_ID, "first");
+        firstProps.put(Constants.SERVICE_ID, (long)1);
         final Map<String, Object> secondProps = new HashMap<String, Object>();
-        secondProps.put(Constants.SERVICE_ID, "second");
+        secondProps.put(Constants.SERVICE_ID, (long)2);
         final Map<String, Object> thirdProps = new HashMap<String, Object>();
-        thirdProps.put(Constants.SERVICE_ID, "third");
+        thirdProps.put(Constants.SERVICE_ID, (long)3);
 
         root.addResourceProvider(firstPath, new ResourceProviderHandler(first, firstProps));
         root.addResourceProvider(secondPath, new ResourceProviderHandler(second, secondProps));



Mime
View raw message