From efe3363a815a777ecd283928900404dea84a7e1f Mon Sep 17 00:00:00 2001 From: jsdelfino Date: Thu, 9 Oct 2008 06:33:54 +0000 Subject: 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 --- .../src/test/java/calculator/CalculatorTestCase.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'branches/sca-equinox/samples/calculator-equinox/src/test') 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(); } } -- cgit v1.2.3