summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/tags/2.0-Beta3-RC2/testing/itest/nodes/remote-stop-start/src
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2012-02-16 15:38:02 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2012-02-16 15:38:02 +0000
commit6a5618b2741471546e0b0885e1758c391837dff6 (patch)
tree4ce17155a4e4e9046d4cc1355042ac35d96209a2 /sca-java-2.x/tags/2.0-Beta3-RC2/testing/itest/nodes/remote-stop-start/src
parent498901ee4d30917ba1fd696e75b61ce3aea79c29 (diff)
Rename beta3 tag to final name
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1245031 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/tags/2.0-Beta3-RC2/testing/itest/nodes/remote-stop-start/src')
-rw-r--r--sca-java-2.x/tags/2.0-Beta3-RC2/testing/itest/nodes/remote-stop-start/src/main/java/itest/HelloworldService.java28
-rw-r--r--sca-java-2.x/tags/2.0-Beta3-RC2/testing/itest/nodes/remote-stop-start/src/main/java/itest/HelloworldServiceImpl.java38
-rw-r--r--sca-java-2.x/tags/2.0-Beta3-RC2/testing/itest/nodes/remote-stop-start/src/main/java/itest/RemoteHelloworldService.java28
-rw-r--r--sca-java-2.x/tags/2.0-Beta3-RC2/testing/itest/nodes/remote-stop-start/src/main/resources/Helloworld.composite29
-rw-r--r--sca-java-2.x/tags/2.0-Beta3-RC2/testing/itest/nodes/remote-stop-start/src/main/resources/META-INF/sca-contribution.xml23
-rw-r--r--sca-java-2.x/tags/2.0-Beta3-RC2/testing/itest/nodes/remote-stop-start/src/test/java/test/scaclient/StopStartTestCase.java62
6 files changed, 0 insertions, 208 deletions
diff --git a/sca-java-2.x/tags/2.0-Beta3-RC2/testing/itest/nodes/remote-stop-start/src/main/java/itest/HelloworldService.java b/sca-java-2.x/tags/2.0-Beta3-RC2/testing/itest/nodes/remote-stop-start/src/main/java/itest/HelloworldService.java
deleted file mode 100644
index f97d2c3a83..0000000000
--- a/sca-java-2.x/tags/2.0-Beta3-RC2/testing/itest/nodes/remote-stop-start/src/main/java/itest/HelloworldService.java
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- * 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 org.oasisopen.sca.annotation.Remotable;
-
-@Remotable
-public interface HelloworldService {
-
- String sayHello(String name);
-
-}
diff --git a/sca-java-2.x/tags/2.0-Beta3-RC2/testing/itest/nodes/remote-stop-start/src/main/java/itest/HelloworldServiceImpl.java b/sca-java-2.x/tags/2.0-Beta3-RC2/testing/itest/nodes/remote-stop-start/src/main/java/itest/HelloworldServiceImpl.java
deleted file mode 100644
index 4fd909af82..0000000000
--- a/sca-java-2.x/tags/2.0-Beta3-RC2/testing/itest/nodes/remote-stop-start/src/main/java/itest/HelloworldServiceImpl.java
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- * 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 org.oasisopen.sca.annotation.EagerInit;
-import org.oasisopen.sca.annotation.Init;
-import org.oasisopen.sca.annotation.Scope;
-
-@EagerInit
-@Scope("COMPOSITE")
-public class HelloworldServiceImpl implements HelloworldService {
-
- public String sayHello(String name) {
- return "Hello " + name;
- }
-
- @Init
- public void init() {
- System.out.println("init: " + sayHello("world"));
- }
-
-}
diff --git a/sca-java-2.x/tags/2.0-Beta3-RC2/testing/itest/nodes/remote-stop-start/src/main/java/itest/RemoteHelloworldService.java b/sca-java-2.x/tags/2.0-Beta3-RC2/testing/itest/nodes/remote-stop-start/src/main/java/itest/RemoteHelloworldService.java
deleted file mode 100644
index d5b9dcf311..0000000000
--- a/sca-java-2.x/tags/2.0-Beta3-RC2/testing/itest/nodes/remote-stop-start/src/main/java/itest/RemoteHelloworldService.java
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- * 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 org.oasisopen.sca.annotation.Remotable;
-
-@Remotable
-public interface RemoteHelloworldService {
-
- String sayHelloRemote(String name);
-
-}
diff --git a/sca-java-2.x/tags/2.0-Beta3-RC2/testing/itest/nodes/remote-stop-start/src/main/resources/Helloworld.composite b/sca-java-2.x/tags/2.0-Beta3-RC2/testing/itest/nodes/remote-stop-start/src/main/resources/Helloworld.composite
deleted file mode 100644
index d37c93857d..0000000000
--- a/sca-java-2.x/tags/2.0-Beta3-RC2/testing/itest/nodes/remote-stop-start/src/main/resources/Helloworld.composite
+++ /dev/null
@@ -1,29 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * 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.
--->
-<composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200912"
- xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.1"
- targetNamespace="http://itest"
- name="Helloworld">
-
- <component name="HelloworldComponent">
- <implementation.java class="itest.HelloworldServiceImpl"/>
- </component>
-
-</composite>
diff --git a/sca-java-2.x/tags/2.0-Beta3-RC2/testing/itest/nodes/remote-stop-start/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/tags/2.0-Beta3-RC2/testing/itest/nodes/remote-stop-start/src/main/resources/META-INF/sca-contribution.xml
deleted file mode 100644
index e178823296..0000000000
--- a/sca-java-2.x/tags/2.0-Beta3-RC2/testing/itest/nodes/remote-stop-start/src/main/resources/META-INF/sca-contribution.xml
+++ /dev/null
@@ -1,23 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * 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.
--->
-<contribution xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200912"
- xmlns:itest="http://itest">
- <deployable composite="itest:Helloworld"/>
-</contribution> \ No newline at end of file
diff --git a/sca-java-2.x/tags/2.0-Beta3-RC2/testing/itest/nodes/remote-stop-start/src/test/java/test/scaclient/StopStartTestCase.java b/sca-java-2.x/tags/2.0-Beta3-RC2/testing/itest/nodes/remote-stop-start/src/test/java/test/scaclient/StopStartTestCase.java
deleted file mode 100644
index 933b9f1bea..0000000000
--- a/sca-java-2.x/tags/2.0-Beta3-RC2/testing/itest/nodes/remote-stop-start/src/test/java/test/scaclient/StopStartTestCase.java
+++ /dev/null
@@ -1,62 +0,0 @@
-/*
- * 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 test.scaclient;
-
-import itest.HelloworldService;
-
-import java.util.List;
-
-import junit.framework.Assert;
-
-import org.apache.tuscany.sca.Node;
-import org.apache.tuscany.sca.TuscanyRuntime;
-import org.apache.tuscany.sca.contribution.processor.ContributionReadException;
-import org.apache.tuscany.sca.monitor.ValidationException;
-import org.apache.tuscany.sca.runtime.ActivationException;
-import org.junit.Test;
-import org.oasisopen.sca.NoSuchDomainException;
-import org.oasisopen.sca.NoSuchServiceException;
-
-public class StopStartTestCase {
-
- @Test
- public void startStopInstall() throws NoSuchServiceException, NoSuchDomainException, ContributionReadException, ActivationException, ValidationException {
- TuscanyRuntime runtime = TuscanyRuntime.newInstance();
- Node node1 = runtime.createNode("uri:StartStopTestCase?wka=127.0.0.1:9876");
- Assert.assertEquals("Hello Amelia", node1.getService(HelloworldService.class, "HelloworldComponent").sayHello("Amelia"));
-
- String curi = node1.getInstalledContributionURIs().get(0);
-
- node1.stopComposite(curi, "Helloworld.composite");
- try {
- node1.getService(HelloworldService.class, "HelloworldComponent").sayHello("Amelia");
- Assert.fail();
- } catch (NoSuchServiceException e) {
- // expected
- }
-
- List<String> nodes = node1.getNodeNames();
- nodes.remove(node1.getLocalNodeName());
- String remoteNode = nodes.get(0);
- node1.startComposite(curi, "Helloworld.composite", remoteNode);
-
-// TUSCANY-3870: this next invoke doesn't work:
-// Assert.assertEquals("Hello Amelia", node1.getService(HelloworldService.class, "HelloworldComponent").sayHello("Amelia"));
- }
-}