From aacabe1650e380595a8d701123394d791656d17d Mon Sep 17 00:00:00 2001 From: jsdelfino Date: Thu, 9 Oct 2008 06:11:26 +0000 Subject: Work in progress. Continued to clean up cross bundle dependencies on implementation classes, like ScopeRegistry, CompositeActivator, ContributionService, some of the factories. Added declarations of some of these utilities to the relevant modules. That also simplified the bootstrap of the runtime used by NodeImpl, which doesn't invoke all their constructors anymore. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@703066 13f79535-47bb-0310-9956-ffa450edef68 --- .../tuscany/sca/node/impl/NodeImplTestCase.java | 50 +--------------------- 1 file changed, 2 insertions(+), 48 deletions(-) (limited to 'branches/sca-equinox/modules/node-impl/src/test/java/org/apache/tuscany/sca/node/impl/NodeImplTestCase.java') diff --git a/branches/sca-equinox/modules/node-impl/src/test/java/org/apache/tuscany/sca/node/impl/NodeImplTestCase.java b/branches/sca-equinox/modules/node-impl/src/test/java/org/apache/tuscany/sca/node/impl/NodeImplTestCase.java index d620f6b62a..e91f399a57 100644 --- a/branches/sca-equinox/modules/node-impl/src/test/java/org/apache/tuscany/sca/node/impl/NodeImplTestCase.java +++ b/branches/sca-equinox/modules/node-impl/src/test/java/org/apache/tuscany/sca/node/impl/NodeImplTestCase.java @@ -49,34 +49,11 @@ public class NodeImplTestCase { public void testNodeWithCompositeContent() { SCANodeFactory factory = new NodeFactoryImpl(); SCAContribution contribution = new SCAContribution("c1", new File("target/test-classes").toURI().toString()); - SCANode node = factory.createSCANode("HelloWorld.composite", composite, contribution); - testNode(node); - } - - @Test - public void testNodeWithCompositeContentAndNoContribution() { - SCANodeFactory factory = new NodeFactoryImpl(); - SCANode node = factory.createSCANode("HelloWorld.composite", composite); - testNode(node); - } - - @Test - public void testNodeWithoutCompositeURI() { - SCANodeFactory factory = new NodeFactoryImpl(); - SCAContribution contribution = new SCAContribution("c1", new File("target/test-classes").toURI().toString()); - SCANode node = factory.createSCANode(null, contribution); + String compositeURI = "HelloWorld.composite"; + SCANode node = factory.createSCANode(compositeURI, composite, contribution); testNode(node); } - @Test - public void testNodeWithCompositeURI() { - SCANodeFactory factory = new NodeFactoryImpl(); - SCAContribution contribution = new SCAContribution("c1", new File("target/test-classes").toURI().toString()); - String compositeURI = new File("target/test-classes/HelloWorld.composite").toURI().toString(); - SCANode node = factory.createSCANode(compositeURI, contribution); - testNode(node); - } - @Test public void testNodeWithRelativeCompositeURI() { SCANodeFactory factory = new NodeFactoryImpl(); @@ -86,29 +63,6 @@ public class NodeImplTestCase { testNode(node); } - @Test - public void testNodeWithRelativeCompositeURIAndNoContribution() { - SCANodeFactory factory = new NodeFactoryImpl(); - String compositeURI = "HelloWorld.composite"; - SCANode node = factory.createSCANode(compositeURI, new SCAContribution[0]); - testNode(node); - } - - @Test - public void testNodeWithClassLoader() { - SCANodeFactory factory = new NodeFactoryImpl(); - String compositeURI = "HelloWorld.composite"; - SCANode node = factory.createSCANodeFromClassLoader(compositeURI, HelloWorld.class.getClassLoader()); - testNode(node); - } - - @Test - public void testNodeWithClassLoaderAndNullComposite() { - SCANodeFactory factory = new NodeFactoryImpl(); - SCANode node = factory.createSCANodeFromClassLoader(null, HelloWorld.class.getClassLoader()); - testNode(node); - } - private void testNode(SCANode node) { node.start(); HelloWorld hw = ((SCAClient)node).getService(HelloWorld.class, "HelloWorld"); -- cgit v1.2.3