aboutsummaryrefslogtreecommitdiffstats
path: root/jdisc_core_test/integration_test/src/test/java/com/yahoo/jdisc/core/FelixFrameworkIntegrationTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'jdisc_core_test/integration_test/src/test/java/com/yahoo/jdisc/core/FelixFrameworkIntegrationTest.java')
-rw-r--r--jdisc_core_test/integration_test/src/test/java/com/yahoo/jdisc/core/FelixFrameworkIntegrationTest.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/jdisc_core_test/integration_test/src/test/java/com/yahoo/jdisc/core/FelixFrameworkIntegrationTest.java b/jdisc_core_test/integration_test/src/test/java/com/yahoo/jdisc/core/FelixFrameworkIntegrationTest.java
index e8551b44a3c..9b7453d2d6b 100644
--- a/jdisc_core_test/integration_test/src/test/java/com/yahoo/jdisc/core/FelixFrameworkIntegrationTest.java
+++ b/jdisc_core_test/integration_test/src/test/java/com/yahoo/jdisc/core/FelixFrameworkIntegrationTest.java
@@ -111,8 +111,11 @@ public class FelixFrameworkIntegrationTest {
Bundle bundleL = startBundle(felix, "cert-l1.jar");
Bundle bundleM = startBundle(felix, "cert-ml.jar");
assertEquals(1, callClass(bundleM, "com.yahoo.jdisc.bundle.m.CertificateM"));
+
+ // Switch from l1 to l2 (identical bundles, except for bsn)
bundleL.uninstall();
startBundle(felix, "cert-l2.jar");
+
felix.refreshPackages();
assertEquals(2, callClass(bundleM, "com.yahoo.jdisc.bundle.m.CertificateM"));
felix.stop();
@@ -185,7 +188,7 @@ public class FelixFrameworkIntegrationTest {
"com.yahoo.vespa.jdisc_core.cert-q-frag");
}
- private static Bundle startBundle(FelixFramework felix, String bundleLocation) throws BundleException {
+ static Bundle startBundle(FelixFramework felix, String bundleLocation) throws BundleException {
List<Bundle> lst = felix.installBundle(bundleLocation);
assertEquals(1, lst.size());
felix.startBundles(lst, false);