diff options
author | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2009-05-05 23:53:06 +0000 |
---|---|---|
committer | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2009-05-05 23:53:06 +0000 |
commit | 5a64d330e22e261d3d6fe62cf74a1f158f20608b (patch) | |
tree | 76fc2c5ff37d59f962185b6e38fa7373108901d5 /java/sca/modules/node-impl-osgi/src/test | |
parent | 3e47841070daa13c07af89469f4dbecdd0686e2b (diff) |
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
Diffstat (limited to 'java/sca/modules/node-impl-osgi/src/test')
-rw-r--r-- | java/sca/modules/node-impl-osgi/src/test/java/calculator/dosgi/test/CalculatorOSGiNodeTestCase.java | 7 |
1 files changed, 5 insertions, 2 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 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(); |