Improve OSGi boot(clean up code, documentation)
[lgpl/argeo-commons.git] / osgi / runtime / org.argeo.osgi.boot / src / test / java / org / argeo / osgi / boot / OsgiBootRuntimeTest.java
index 93f5c921bb6846a68aa79792b16aa88447b752f7..07567b8ca3b6c22adac28fd9361b2a36dfe04e67 100644 (file)
@@ -34,7 +34,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 +50,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) {