summaryrefslogtreecommitdiffstats
path: root/branches/sca-equinox/samples/calculator-equinox
diff options
context:
space:
mode:
authorjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2008-10-09 06:33:54 +0000
committerjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2008-10-09 06:33:54 +0000
commitefe3363a815a777ecd283928900404dea84a7e1f (patch)
tree42522fd01e6af981f8ff94663d911d56744154d5 /branches/sca-equinox/samples/calculator-equinox
parentaacabe1650e380595a8d701123394d791656d17d (diff)
Work in progress. Fixed implementation of NodeImpl, now working without dependencies on implementations from other bundles (except RuntimeAssemblyFactory, which will need to be cleaned up too). Started to remove dependencies on host-embedded and port code to NodeFactory and Node, as an interim step to bring them up, before porting them to the OSGi-enabled node launcher.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@703068 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'branches/sca-equinox/samples/calculator-equinox')
-rw-r--r--branches/sca-equinox/samples/calculator-equinox/src/test/java/calculator/CalculatorTestCase.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/branches/sca-equinox/samples/calculator-equinox/src/test/java/calculator/CalculatorTestCase.java b/branches/sca-equinox/samples/calculator-equinox/src/test/java/calculator/CalculatorTestCase.java
index 83c0e7c9ff..28d83fac4a 100644
--- a/branches/sca-equinox/samples/calculator-equinox/src/test/java/calculator/CalculatorTestCase.java
+++ b/branches/sca-equinox/samples/calculator-equinox/src/test/java/calculator/CalculatorTestCase.java
@@ -20,7 +20,7 @@ package calculator;
import junit.framework.TestCase;
-import org.apache.tuscany.sca.node.SCANode;
+import org.apache.tuscany.sca.node.Node;
import org.apache.tuscany.sca.node.equinox.launcher.Contribution;
import org.apache.tuscany.sca.node.equinox.launcher.ContributionLocationHelper;
import org.apache.tuscany.sca.node.equinox.launcher.NodeLauncher;
@@ -35,7 +35,7 @@ import org.osoa.sca.annotations.Scope;
public class CalculatorTestCase extends TestCase {
private NodeLauncher launcher;
- private SCANode node;
+ private Node node;
@Override
protected void setUp() throws Exception {
@@ -48,8 +48,11 @@ public class CalculatorTestCase extends TestCase {
@Override
protected void tearDown() throws Exception {
- if (launcher != null) {
+ if (node != null) {
node.stop();
+ node.destroy();
+ }
+ if (launcher != null) {
launcher.destroy();
}
}