From 1618160f4f2dbb67727df2d341c505f105aa1e2c Mon Sep 17 00:00:00 2001 From: antelder Date: Tue, 26 Oct 2010 11:07:13 +0000 Subject: Delete and redo release branch git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1027464 13f79535-47bb-0310-9956-ffa450edef68 --- .../itest/nodes/two-nodes-two-vms-test/build.xml | 38 ++++++++ .../nodes/two-nodes-two-vms-test/client-config.xml | 39 ++++++++ .../itest/nodes/two-nodes-two-vms-test/client.xml | 31 ++++++ .../itest/nodes/two-nodes-two-vms-test/pom.xml | 104 +++++++++++++++++++++ .../nodes/two-nodes-two-vms-test/server-config.xml | 39 ++++++++ .../itest/nodes/two-nodes-two-vms-test/server.xml | 33 +++++++ .../src/test/java/itest/Client.java | 69 ++++++++++++++ .../src/test/java/itest/Service.java | 61 ++++++++++++ 8 files changed, 414 insertions(+) create mode 100644 sca-java-2.x/branches/2.0-Beta1/testing/itest/nodes/two-nodes-two-vms-test/build.xml create mode 100644 sca-java-2.x/branches/2.0-Beta1/testing/itest/nodes/two-nodes-two-vms-test/client-config.xml create mode 100644 sca-java-2.x/branches/2.0-Beta1/testing/itest/nodes/two-nodes-two-vms-test/client.xml create mode 100644 sca-java-2.x/branches/2.0-Beta1/testing/itest/nodes/two-nodes-two-vms-test/pom.xml create mode 100644 sca-java-2.x/branches/2.0-Beta1/testing/itest/nodes/two-nodes-two-vms-test/server-config.xml create mode 100644 sca-java-2.x/branches/2.0-Beta1/testing/itest/nodes/two-nodes-two-vms-test/server.xml create mode 100644 sca-java-2.x/branches/2.0-Beta1/testing/itest/nodes/two-nodes-two-vms-test/src/test/java/itest/Client.java create mode 100644 sca-java-2.x/branches/2.0-Beta1/testing/itest/nodes/two-nodes-two-vms-test/src/test/java/itest/Service.java (limited to 'sca-java-2.x/branches/2.0-Beta1/testing/itest/nodes/two-nodes-two-vms-test') diff --git a/sca-java-2.x/branches/2.0-Beta1/testing/itest/nodes/two-nodes-two-vms-test/build.xml b/sca-java-2.x/branches/2.0-Beta1/testing/itest/nodes/two-nodes-two-vms-test/build.xml new file mode 100644 index 0000000000..fa7e963e87 --- /dev/null +++ b/sca-java-2.x/branches/2.0-Beta1/testing/itest/nodes/two-nodes-two-vms-test/build.xml @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/sca-java-2.x/branches/2.0-Beta1/testing/itest/nodes/two-nodes-two-vms-test/client-config.xml b/sca-java-2.x/branches/2.0-Beta1/testing/itest/nodes/two-nodes-two-vms-test/client-config.xml new file mode 100644 index 0000000000..3175406749 --- /dev/null +++ b/sca-java-2.x/branches/2.0-Beta1/testing/itest/nodes/two-nodes-two-vms-test/client-config.xml @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + diff --git a/sca-java-2.x/branches/2.0-Beta1/testing/itest/nodes/two-nodes-two-vms-test/client.xml b/sca-java-2.x/branches/2.0-Beta1/testing/itest/nodes/two-nodes-two-vms-test/client.xml new file mode 100644 index 0000000000..8e7c744940 --- /dev/null +++ b/sca-java-2.x/branches/2.0-Beta1/testing/itest/nodes/two-nodes-two-vms-test/client.xml @@ -0,0 +1,31 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/sca-java-2.x/branches/2.0-Beta1/testing/itest/nodes/two-nodes-two-vms-test/pom.xml b/sca-java-2.x/branches/2.0-Beta1/testing/itest/nodes/two-nodes-two-vms-test/pom.xml new file mode 100644 index 0000000000..7dbbda6a33 --- /dev/null +++ b/sca-java-2.x/branches/2.0-Beta1/testing/itest/nodes/two-nodes-two-vms-test/pom.xml @@ -0,0 +1,104 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-itest + 2.0-Beta1-SNAPSHOT + ../pom.xml + + itest-nodes-two-nodes-two-vms-test + Apache Tuscany SCA iTest Nodes Two Nodes Two VMs Test + + + + org.apache.tuscany.sca + tuscany-domain-node + 2.0-Beta1-SNAPSHOT + + + org.apache.tuscany.sca + tuscany-endpoint-tribes + 2.0-Beta1-SNAPSHOT + + + org.apache.tuscany.sca + itest-nodes-helloworld-iface + 2.0-Beta1-SNAPSHOT + + + org.apache.tuscany.sca + tuscany-node-impl + 2.0-Beta1-SNAPSHOT + + + org.apache.tuscany.sca + tuscany-node-launcher + 2.0-Beta1-SNAPSHOT + + + org.apache.tuscany.sca + tuscany-sca-client-impl + 2.0-Beta1-SNAPSHOT + + + org.apache.tuscany.sca + tuscany-implementation-java-runtime + 2.0-Beta1-SNAPSHOT + + + org.apache.tuscany.sca + tuscany-binding-rmi-runtime + 2.0-Beta1-SNAPSHOT + + + org.apache.tuscany.sca + tuscany-host-jetty + 2.0-Beta1-SNAPSHOT + + + + + + + + org.apache.maven.plugins + maven-antrun-plugin + + + run-samples + test + + run + + + + + + + + + + + + + + diff --git a/sca-java-2.x/branches/2.0-Beta1/testing/itest/nodes/two-nodes-two-vms-test/server-config.xml b/sca-java-2.x/branches/2.0-Beta1/testing/itest/nodes/two-nodes-two-vms-test/server-config.xml new file mode 100644 index 0000000000..590cf3bddb --- /dev/null +++ b/sca-java-2.x/branches/2.0-Beta1/testing/itest/nodes/two-nodes-two-vms-test/server-config.xml @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sca-java-2.x/branches/2.0-Beta1/testing/itest/nodes/two-nodes-two-vms-test/server.xml b/sca-java-2.x/branches/2.0-Beta1/testing/itest/nodes/two-nodes-two-vms-test/server.xml new file mode 100644 index 0000000000..05a5aa16e9 --- /dev/null +++ b/sca-java-2.x/branches/2.0-Beta1/testing/itest/nodes/two-nodes-two-vms-test/server.xml @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sca-java-2.x/branches/2.0-Beta1/testing/itest/nodes/two-nodes-two-vms-test/src/test/java/itest/Client.java b/sca-java-2.x/branches/2.0-Beta1/testing/itest/nodes/two-nodes-two-vms-test/src/test/java/itest/Client.java new file mode 100644 index 0000000000..eef3362c10 --- /dev/null +++ b/sca-java-2.x/branches/2.0-Beta1/testing/itest/nodes/two-nodes-two-vms-test/src/test/java/itest/Client.java @@ -0,0 +1,69 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package itest; + +import java.io.File; + +import org.apache.tuscany.sca.binding.rmi.RMIBinding; +import org.apache.tuscany.sca.domain.node.DomainNode; +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; + +public class Client { + + private static Node clientNode; +// private static DomainNode clientNode; + + @BeforeClass + public static void setUpBeforeClass() throws Exception { + NodeFactory factory = NodeFactory.newInstance(); + + clientNode = factory.createNode(new File("client-config.xml").toURI().toURL()); + + try { + clientNode.start(); + } catch (Exception ex){ + ex.printStackTrace(); + throw ex; + } + +// clientNode = new DomainNode("tribes:default", new String []{"../helloworld-client/target/itest-nodes-helloworld-client-2.0-SNAPSHOT.jar"}); + } + + @Test + public void testNothing() throws Exception { + + } + + @AfterClass + public static void tearDownAfterClass() throws Exception { + if (clientNode != null) { + clientNode.stop(); + } + } + + public static void main(String[] args) throws Exception { + Client.setUpBeforeClass(); + Client.tearDownAfterClass(); + } +} diff --git a/sca-java-2.x/branches/2.0-Beta1/testing/itest/nodes/two-nodes-two-vms-test/src/test/java/itest/Service.java b/sca-java-2.x/branches/2.0-Beta1/testing/itest/nodes/two-nodes-two-vms-test/src/test/java/itest/Service.java new file mode 100644 index 0000000000..7323c2c122 --- /dev/null +++ b/sca-java-2.x/branches/2.0-Beta1/testing/itest/nodes/two-nodes-two-vms-test/src/test/java/itest/Service.java @@ -0,0 +1,61 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package itest; + +import java.io.File; + +import org.apache.tuscany.sca.binding.rmi.RMIBinding; +import org.apache.tuscany.sca.domain.node.DomainNode; +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; + +public class Service { + + private static Node serviceNode; +// private static DomainNode serviceNode; + + @BeforeClass + public static void setUpBeforeClass() throws Exception { + NodeFactory factory = NodeFactory.newInstance(); + + serviceNode = factory.createNode(new File("server-config.xml").toURI().toURL()); + serviceNode.start(); + +// serviceNode = new DomainNode("tribes:default", new String[]{"../helloworld-service/target/classes"}); + + } + + @Test + public void testNothing() throws Exception { + synchronized (this) { + this.wait(); + } + } + + @AfterClass + public static void tearDownAfterClass() throws Exception { + if (serviceNode != null) { + serviceNode.stop(); + } + } +} -- cgit v1.2.3