diff options
Diffstat (limited to 'java/sca/modules/node-impl-osgi')
2 files changed, 6 insertions, 5 deletions
diff --git a/java/sca/modules/node-impl-osgi/src/test/java/calculator/dosgi/test/CalculatorOSGiNodeTestCase.java b/java/sca/modules/node-impl-osgi/src/test/java/calculator/dosgi/test/CalculatorOSGiNodeTestCase.java index 6c4b9b95b1..945f0fca37 100644 --- a/java/sca/modules/node-impl-osgi/src/test/java/calculator/dosgi/test/CalculatorOSGiNodeTestCase.java +++ b/java/sca/modules/node-impl-osgi/src/test/java/calculator/dosgi/test/CalculatorOSGiNodeTestCase.java @@ -71,12 +71,12 @@ public class CalculatorOSGiNodeTestCase { if (client == null || client.booleanValue()) { System.out.println("Generating calculator.dosgi bundle..."); - calculatorBundle = context.installBundle(generateCalculatorBundle().toString()); + calculatorBundle = context.installBundle("reference:" + generateCalculatorBundle().toString()); } if (client == null || !client.booleanValue()) { System.out.println("Generating calculator.dosgi.operations bundle..."); - operationsBundle = context.installBundle(generateOperationsBundle().toString()); + operationsBundle = context.installBundle("reference:" + generateOperationsBundle().toString()); } for (Bundle b : context.getBundles()) { @@ -111,7 +111,8 @@ public class CalculatorOSGiNodeTestCase { @Test public void testOSGi() { if (client == null || client.booleanValue()) { - ServiceReference ref = calculatorBundle.getBundleContext().getServiceReference(CalculatorService.class.getName()); + ServiceReference ref = + calculatorBundle.getBundleContext().getServiceReference(CalculatorService.class.getName()); Assert.assertNotNull(ref); Object service = context.getService(ref); Assert.assertNotNull(service); diff --git a/java/sca/modules/node-impl-osgi/src/test/java/calculator/dosgi/test/CalculatorOSGiTestCase.java b/java/sca/modules/node-impl-osgi/src/test/java/calculator/dosgi/test/CalculatorOSGiTestCase.java index 3937ac0974..2af5552279 100644 --- a/java/sca/modules/node-impl-osgi/src/test/java/calculator/dosgi/test/CalculatorOSGiTestCase.java +++ b/java/sca/modules/node-impl-osgi/src/test/java/calculator/dosgi/test/CalculatorOSGiTestCase.java @@ -47,8 +47,8 @@ public class CalculatorOSGiTestCase { try { host = new EquinoxHost(); BundleContext context = host.start(); - Bundle calculatorBundle = context.installBundle(generateCalculatorBundle().toString()); - Bundle operationsBundle = context.installBundle(generateOperationsBundle().toString()); + Bundle calculatorBundle = context.installBundle("reference:" + generateCalculatorBundle().toString()); + Bundle operationsBundle = context.installBundle("reference:" + generateOperationsBundle().toString()); for (Bundle b : context.getBundles()) { if (b.getSymbolicName().equals("org.eclipse.equinox.ds")) { |