You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2017/11/07 09:55:40 UTC
[sling-org-apache-sling-models-impl] 10/24: fixing error in Sling
Models test code - service ranking must be an integer to be effective
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to annotated tag org.apache.sling.models.impl-1.1.0
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-models-impl.git
commit ad90196c15b9c3d7a4e45e5cfc5d78d0405db384
Author: Justin Edelson <ju...@apache.org>
AuthorDate: Fri Aug 22 14:18:41 2014 +0000
fixing error in Sling Models test code - service ranking must be an integer to be effective
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/extensions/models/impl@1619818 13f79535-47bb-0310-9956-ffa450edef68
---
.../java/org/apache/sling/models/impl/MultipleInjectorTest.java | 6 +++---
.../java/org/apache/sling/models/impl/ServicePropertiesMap.java | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/test/java/org/apache/sling/models/impl/MultipleInjectorTest.java b/src/test/java/org/apache/sling/models/impl/MultipleInjectorTest.java
index 4e7c331..44324c5 100644
--- a/src/test/java/org/apache/sling/models/impl/MultipleInjectorTest.java
+++ b/src/test/java/org/apache/sling/models/impl/MultipleInjectorTest.java
@@ -68,9 +68,9 @@ public class MultipleInjectorTest {
factory = new ModelAdapterFactory();
factory.activate(componentCtx);
- factory.bindInjector(bindingsInjector, new ServicePropertiesMap(2, 2));
- factory.bindInjector(attributesInjector, new ServicePropertiesMap(1, 1));
- factory.bindInjectAnnotationProcessorFactory(bindingsInjector, new ServicePropertiesMap(2, 2));
+ factory.bindInjector(bindingsInjector, new ServicePropertiesMap(1, 1));
+ factory.bindInjector(attributesInjector, new ServicePropertiesMap(2, 2));
+ factory.bindInjectAnnotationProcessorFactory(bindingsInjector, new ServicePropertiesMap(1, 1));
when(request.getAttribute(SlingBindings.class.getName())).thenReturn(bindings);
}
diff --git a/src/test/java/org/apache/sling/models/impl/ServicePropertiesMap.java b/src/test/java/org/apache/sling/models/impl/ServicePropertiesMap.java
index 884f61e..d424e5c 100644
--- a/src/test/java/org/apache/sling/models/impl/ServicePropertiesMap.java
+++ b/src/test/java/org/apache/sling/models/impl/ServicePropertiesMap.java
@@ -23,7 +23,7 @@ import org.osgi.framework.Constants;
@SuppressWarnings("serial")
public class ServicePropertiesMap extends HashMap<String, Object> {
- public ServicePropertiesMap(long serviceId, long serviceRanking) {
+ public ServicePropertiesMap(long serviceId, int serviceRanking) {
super();
put(Constants.SERVICE_ID, serviceId);
put(Constants.SERVICE_RANKING, serviceRanking);
--
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.