diff options
author | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2008-10-09 06:11:26 +0000 |
---|---|---|
committer | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2008-10-09 06:11:26 +0000 |
commit | aacabe1650e380595a8d701123394d791656d17d (patch) | |
tree | e65c3cd29b717b61e6e555f4c5cbbd3dd2d23801 /branches/sca-equinox/modules/node-impl/src/test/java/org/apache | |
parent | df5a712c838f31ccee892414fd12b965cc613590 (diff) |
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
Diffstat (limited to '')
-rw-r--r-- | branches/sca-equinox/modules/node-impl/src/test/java/org/apache/tuscany/sca/node/impl/NodeImplTestCase.java | 50 |
1 files changed, 2 insertions, 48 deletions
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,35 +49,12 @@ 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(); SCAContribution contribution = new SCAContribution("c1", new File("target/test-classes").toURI().toString()); @@ -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"); |