]> git.argeo.org Git - lgpl/argeo-commons.git/blobdiff - osgi/runtime/org.argeo.osgi.boot/src/test/java/org/argeo/osgi/boot/OsgiBootRuntimeTest.java
Update license headers
[lgpl/argeo-commons.git] / osgi / runtime / org.argeo.osgi.boot / src / test / java / org / argeo / osgi / boot / OsgiBootRuntimeTest.java
index 93f5c921bb6846a68aa79792b16aa88447b752f7..0f2eb7d3247e72878f8af12caba89e8daee551df 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2010 Mathieu Baudier <mbaudier@argeo.org>
+ * Copyright (C) 2007-2012 Mathieu Baudier
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -13,7 +13,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 package org.argeo.osgi.boot;
 
 import java.util.Iterator;
@@ -34,7 +33,7 @@ public class OsgiBootRuntimeTest extends TestCase {
        public void testInstallAndStart() throws Exception {
                osgiBoot.installUrls(osgiBoot.getBundlesUrls(OsgiBoot.DEFAULT_BASE_URL,
                                OsgiBootNoRuntimeTest.BUNDLES));
-               Map map = new TreeMap(osgiBoot.getBundles());
+               Map map = new TreeMap(osgiBoot.getBundlesBySymbolicName());
                for (Iterator keys = map.keySet().iterator(); keys.hasNext();) {
                        Object key = keys.next();
                        Bundle bundle = (Bundle) map.get(key);
@@ -50,7 +49,7 @@ public class OsgiBootRuntimeTest extends TestCase {
                osgiBoot.startBundles("org.argeo.osgi.boot.test.bundle2");
                long begin = System.currentTimeMillis();
                while (System.currentTimeMillis() - begin < 10000) {
-                       Map mapBundles = osgiBoot.getBundles();
+                       Map mapBundles = osgiBoot.getBundlesBySymbolicName();
                        Bundle bundle = (Bundle) mapBundles
                                        .get("org.argeo.osgi.boot.test.bundle2");
                        if (bundle.getState() == Bundle.ACTIVE) {