From 242db70ff4b74ba32c83d9b7b0052592294f8a31 Mon Sep 17 00:00:00 2001 From: antelder Date: Mon, 14 Sep 2009 13:45:08 +0000 Subject: Start bringing up the oneway-nocf itest git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@814640 13f79535-47bb-0310-9956-ffa450edef68 --- java/sca/itest/jms/oneway-nocf/pom.xml | 30 ++++++---------------- .../tuscany/sca/binding/jms/OneWayClientImpl.java | 4 +-- .../tuscany/sca/binding/jms/OneWayService.java | 4 +-- .../main/resources/META-INF/sca-contribution.xml | 24 +++++++++++++++++ .../main/resources/oneway/OneWayClient.composite | 7 ++--- .../main/resources/oneway/OneWayService.composite | 7 ++--- .../tuscany/sca/binding/jms/OneWayTestCase.java | 13 +++++----- 7 files changed, 51 insertions(+), 38 deletions(-) create mode 100644 java/sca/itest/jms/oneway-nocf/src/main/resources/META-INF/sca-contribution.xml (limited to 'java/sca/itest/jms/oneway-nocf') diff --git a/java/sca/itest/jms/oneway-nocf/pom.xml b/java/sca/itest/jms/oneway-nocf/pom.xml index add122c3ca..c3c1472242 100644 --- a/java/sca/itest/jms/oneway-nocf/pom.xml +++ b/java/sca/itest/jms/oneway-nocf/pom.xml @@ -22,57 +22,43 @@ org.apache.tuscany.sca tuscany-itest - 1.6-SNAPSHOT - ../../pom.xml + 2.0-SNAPSHOT + ../pom.xml itest-jms-oneway-nocf Apache Tuscany SCA iTest JMS for a oneway service - - - apache.incubator - http://people.apache.org/repo/m2-incubating-repository - - - org.apache.tuscany.sca tuscany-sca-api - 1.6-SNAPSHOT + 2.0-SNAPSHOT org.apache.tuscany.sca - tuscany-host-embedded - 1.6-SNAPSHOT + tuscany-node-impl + 2.0-SNAPSHOT runtime org.apache.tuscany.sca tuscany-implementation-java-runtime - 1.6-SNAPSHOT + 2.0-SNAPSHOT runtime - - org.apache.tuscany.sca - tuscany-binding-jms-policy - 1.6-SNAPSHOT - runtime - - org.apache.tuscany.sca tuscany-binding-jms-runtime - 1.6-SNAPSHOT + 2.0-SNAPSHOT org.apache.tuscany.sca tuscany-host-jms-asf - 1.6-SNAPSHOT + 2.0-SNAPSHOT diff --git a/java/sca/itest/jms/oneway-nocf/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayClientImpl.java b/java/sca/itest/jms/oneway-nocf/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayClientImpl.java index 4d00d2df0d..b572b1012a 100644 --- a/java/sca/itest/jms/oneway-nocf/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayClientImpl.java +++ b/java/sca/itest/jms/oneway-nocf/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayClientImpl.java @@ -18,8 +18,8 @@ */ package org.apache.tuscany.sca.binding.jms; -import org.osoa.sca.annotations.Reference; -import org.osoa.sca.annotations.Service; +import org.oasisopen.sca.annotation.Reference; +import org.oasisopen.sca.annotation.Service; /** * This class implements the OneWay service. diff --git a/java/sca/itest/jms/oneway-nocf/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayService.java b/java/sca/itest/jms/oneway-nocf/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayService.java index 377f227ceb..9cec2d9b3e 100644 --- a/java/sca/itest/jms/oneway-nocf/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayService.java +++ b/java/sca/itest/jms/oneway-nocf/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayService.java @@ -18,8 +18,8 @@ */ package org.apache.tuscany.sca.binding.jms; -import org.osoa.sca.annotations.OneWay; -import org.osoa.sca.annotations.Remotable; +import org.oasisopen.sca.annotation.OneWay; +import org.oasisopen.sca.annotation.Remotable; @Remotable public interface OneWayService { diff --git a/java/sca/itest/jms/oneway-nocf/src/main/resources/META-INF/sca-contribution.xml b/java/sca/itest/jms/oneway-nocf/src/main/resources/META-INF/sca-contribution.xml new file mode 100644 index 0000000000..360b365d1b --- /dev/null +++ b/java/sca/itest/jms/oneway-nocf/src/main/resources/META-INF/sca-contribution.xml @@ -0,0 +1,24 @@ + + + + + + \ No newline at end of file diff --git a/java/sca/itest/jms/oneway-nocf/src/main/resources/oneway/OneWayClient.composite b/java/sca/itest/jms/oneway-nocf/src/main/resources/oneway/OneWayClient.composite index ec7b19ff98..ee788ee251 100644 --- a/java/sca/itest/jms/oneway-nocf/src/main/resources/oneway/OneWayClient.composite +++ b/java/sca/itest/jms/oneway-nocf/src/main/resources/oneway/OneWayClient.composite @@ -17,7 +17,8 @@ * specific language governing permissions and limitations * under the License. --> - @@ -28,8 +29,8 @@ - - + + diff --git a/java/sca/itest/jms/oneway-nocf/src/main/resources/oneway/OneWayService.composite b/java/sca/itest/jms/oneway-nocf/src/main/resources/oneway/OneWayService.composite index dff7d0c77f..5412a1d6e0 100644 --- a/java/sca/itest/jms/oneway-nocf/src/main/resources/oneway/OneWayService.composite +++ b/java/sca/itest/jms/oneway-nocf/src/main/resources/oneway/OneWayService.composite @@ -17,15 +17,16 @@ * specific language governing permissions and limitations * under the License. --> - - - + + diff --git a/java/sca/itest/jms/oneway-nocf/src/test/java/org/apache/tuscany/sca/binding/jms/OneWayTestCase.java b/java/sca/itest/jms/oneway-nocf/src/test/java/org/apache/tuscany/sca/binding/jms/OneWayTestCase.java index adc7813bee..5d1f764382 100644 --- a/java/sca/itest/jms/oneway-nocf/src/test/java/org/apache/tuscany/sca/binding/jms/OneWayTestCase.java +++ b/java/sca/itest/jms/oneway-nocf/src/test/java/org/apache/tuscany/sca/binding/jms/OneWayTestCase.java @@ -20,7 +20,8 @@ package org.apache.tuscany.sca.binding.jms; import static org.junit.Assert.assertEquals; -import org.apache.tuscany.sca.host.embedded.SCADomain; +import org.apache.tuscany.sca.node.Node; +import org.apache.tuscany.sca.node.NodeFactory; import org.junit.After; import org.junit.Before; import org.junit.Test; @@ -30,16 +31,16 @@ import org.junit.Test; */ public class OneWayTestCase { - private static SCADomain scaDomain; + private Node node; @Before public void init() { - scaDomain = SCADomain.newInstance("http://localhost", "/", "oneway/OneWayClient.composite", "oneway/OneWayService.composite"); + node = NodeFactory.newInstance().createNode().start(); } @Test public void testOneWayInvoked() throws Exception { - OneWayService oneWayService = scaDomain.getService(OneWayService.class, "OneWayClient"); + OneWayService oneWayService = node.getService(OneWayService.class, "OneWayClient"); oneWayService.sayHello("Petra"); synchronized (OneWayServiceImpl.mutex) { // wait up to 10 seconds but it will likely be a lot less @@ -51,8 +52,8 @@ public class OneWayTestCase { @After public void end() { - if (scaDomain != null) { - scaDomain.close(); + if (node != null) { + node.stop(); } } } -- cgit v1.2.3