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:24:29 UTC
[sling-org-apache-sling-commons-osgi] 25/29: Use new osgi util to
order services based on their ranking
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to annotated tag org.apache.sling.commons.osgi-2.0.6
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-commons-osgi.git
commit 8093e629ae4e10fca86ee695fefcf090143cdfb0
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Tue Mar 9 18:17:27 2010 +0000
Use new osgi util to order services based on their ranking
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/commons/osgi@921031 13f79535-47bb-0310-9956-ffa450edef68
---
src/test/java/org/apache/sling/commons/osgi/OsgiUtilTest.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/test/java/org/apache/sling/commons/osgi/OsgiUtilTest.java b/src/test/java/org/apache/sling/commons/osgi/OsgiUtilTest.java
index 464b3ba..2d2cc3e 100644
--- a/src/test/java/org/apache/sling/commons/osgi/OsgiUtilTest.java
+++ b/src/test/java/org/apache/sling/commons/osgi/OsgiUtilTest.java
@@ -151,5 +151,6 @@ public class OsgiUtilTest extends TestCase {
map1.put(Constants.SERVICE_RANKING, "hello");
assertEquals(-1, OsgiUtil.getComparableForServiceRanking(map1).compareTo(map2));
assertEquals(1, OsgiUtil.getComparableForServiceRanking(map2).compareTo(map1));
+ assertEquals(1, OsgiUtil.getComparableForServiceRanking(map2).compareTo(OsgiUtil.getComparableForServiceRanking(map1)));
}
}
--
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.