diff options
Diffstat (limited to 'java/sca/itest/nodes/two-nodes-two-vms-test/src')
-rw-r--r-- | java/sca/itest/nodes/two-nodes-two-vms-test/src/test/java/itest/TwoNodesTestCase.java | 36 |
1 files changed, 4 insertions, 32 deletions
diff --git a/java/sca/itest/nodes/two-nodes-two-vms-test/src/test/java/itest/TwoNodesTestCase.java b/java/sca/itest/nodes/two-nodes-two-vms-test/src/test/java/itest/TwoNodesTestCase.java index 6f0c7565e7..b27d16a562 100644 --- a/java/sca/itest/nodes/two-nodes-two-vms-test/src/test/java/itest/TwoNodesTestCase.java +++ b/java/sca/itest/nodes/two-nodes-two-vms-test/src/test/java/itest/TwoNodesTestCase.java @@ -19,67 +19,39 @@ package itest; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNotNull; -import itest.nodes.Helloworld; - import java.io.File; -import java.net.URL; -import org.apache.tuscany.sca.node.Contribution; import org.apache.tuscany.sca.node.Node; import org.apache.tuscany.sca.node.NodeFactory; import org.junit.AfterClass; import org.junit.BeforeClass; import org.junit.Test; -import org.oasisopen.sca.client.SCAClient; -import org.oasisopen.sca.client.SCAClientFactory; /** * This shows how to test the Calculator service component. */ -public class TwoNodesTestCase{ +public class TwoNodesTestCase { private static Node serviceNode; - private static Node clientNode; @BeforeClass public static void setUpBeforeClass() throws Exception { NodeFactory factory = NodeFactory.newInstance(); - serviceNode = factory.createNode(new URL("file:./server-config.xml")); + serviceNode = factory.createNode(new File("server-config.xml").toURI().toURL()); serviceNode.start(); - - //clientNode = factory.createNode(new Contribution("client", getJar("../helloworld-client/target"))); - //clientNode.start(); - } - /** - * Get the jar in the target folder without being dependent on the version name to - * make tuscany releases easier - */ - private static String getJar(String targetDirectory) { - File f = new File(targetDirectory); - for (File file : f.listFiles()) { - if (file.getName().endsWith(".jar")) { - return file.toURI().toString(); - } - } - throw new IllegalStateException("Can't find jar in: " + targetDirectory); } - + @Test public void testNothing() throws Exception { - } + } @AfterClass public static void tearDownAfterClass() throws Exception { if (serviceNode != null) { serviceNode.stop(); } - if (clientNode != null) { - clientNode.stop(); - } } } |