From 5a64d330e22e261d3d6fe62cf74a1f158f20608b Mon Sep 17 00:00:00 2001 From: rfeng Date: Tue, 5 May 2009 23:53:06 +0000 Subject: Allow the SCA composite for bundles can be packaged in an external bundle and leave the original bundles as is git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@772014 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/calculator/dosgi/test/CalculatorOSGiNodeTestCase.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'java/sca/modules/node-impl-osgi/src') 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 a141cbeb21..268f16bc9f 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 @@ -81,7 +81,7 @@ public class CalculatorOSGiNodeTestCase { System.out.println("Generating calculator.dosgi.operations bundle..."); operationsBundle = context.installBundle("reference:" + generateOperationsBundle().toString()); } - + scaBundle = context.installBundle("reference:" + generateCalculatorSCABundle().toString()); for (Bundle b : context.getBundles()) { @@ -98,7 +98,7 @@ public class CalculatorOSGiNodeTestCase { System.out.println(bundleStatus(b, false)); } } - + if (scaBundle != null) { scaBundle.start(); } @@ -141,6 +141,9 @@ public class CalculatorOSGiNodeTestCase { @AfterClass public static void tearDownAfterClass() throws Exception { if (host != null) { + if (scaBundle != null) { + scaBundle.stop(); + } if (client != null && !client.booleanValue()) { System.out.println("Press Enter to stop the node..."); System.in.read(); -- cgit v1.2.3