From e35a98ce2004302b75ec0ef8d78bd39b2e75fe8f Mon Sep 17 00:00:00 2001 From: antelder Date: Mon, 14 Sep 2009 13:10:22 +0000 Subject: Bring up the JMS args itest git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@814625 13f79535-47bb-0310-9956-ffa450edef68 --- java/sca/itest/jms/args/pom.xml | 26 +++++----------------- .../apache/tuscany/sca/binding/jms/ClientImpl.java | 4 ++-- .../apache/tuscany/sca/binding/jms/MyService.java | 4 ++-- .../main/resources/META-INF/sca-contribution.xml | 23 +++++++++++++++++++ .../main/resources/selectors/selectors.composite | 5 ++--- .../tuscany/sca/binding/jms/ArgsTestCase.java | 13 ++++++----- 6 files changed, 42 insertions(+), 33 deletions(-) create mode 100644 java/sca/itest/jms/args/src/main/resources/META-INF/sca-contribution.xml (limited to 'java/sca/itest/jms') diff --git a/java/sca/itest/jms/args/pom.xml b/java/sca/itest/jms/args/pom.xml index ed3bafe32f..4cfe475b92 100644 --- a/java/sca/itest/jms/args/pom.xml +++ b/java/sca/itest/jms/args/pom.xml @@ -23,50 +23,36 @@ org.apache.tuscany.sca tuscany-itest 1.6-SNAPSHOT - ../../pom.xml + ../pom.xml itest-jms-args Apache Tuscany SCA iTest JMS Args - - - 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 - runtime - - org.apache.tuscany.sca tuscany-implementation-java-runtime - 1.6-SNAPSHOT + 2.0-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 @@ -79,7 +65,7 @@ org.apache.tuscany.sca tuscany-node-impl - 1.6-SNAPSHOT + 2.0-SNAPSHOT test diff --git a/java/sca/itest/jms/args/src/main/java/org/apache/tuscany/sca/binding/jms/ClientImpl.java b/java/sca/itest/jms/args/src/main/java/org/apache/tuscany/sca/binding/jms/ClientImpl.java index 51ce5f4f24..68506b857b 100644 --- a/java/sca/itest/jms/args/src/main/java/org/apache/tuscany/sca/binding/jms/ClientImpl.java +++ b/java/sca/itest/jms/args/src/main/java/org/apache/tuscany/sca/binding/jms/ClientImpl.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/args/src/main/java/org/apache/tuscany/sca/binding/jms/MyService.java b/java/sca/itest/jms/args/src/main/java/org/apache/tuscany/sca/binding/jms/MyService.java index 487e5f2cbb..5f19aa1fa5 100644 --- a/java/sca/itest/jms/args/src/main/java/org/apache/tuscany/sca/binding/jms/MyService.java +++ b/java/sca/itest/jms/args/src/main/java/org/apache/tuscany/sca/binding/jms/MyService.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 MyService { diff --git a/java/sca/itest/jms/args/src/main/resources/META-INF/sca-contribution.xml b/java/sca/itest/jms/args/src/main/resources/META-INF/sca-contribution.xml new file mode 100644 index 0000000000..07caa57490 --- /dev/null +++ b/java/sca/itest/jms/args/src/main/resources/META-INF/sca-contribution.xml @@ -0,0 +1,23 @@ + + + + + \ No newline at end of file diff --git a/java/sca/itest/jms/args/src/main/resources/selectors/selectors.composite b/java/sca/itest/jms/args/src/main/resources/selectors/selectors.composite index 74c352934f..1a9075f6d4 100644 --- a/java/sca/itest/jms/args/src/main/resources/selectors/selectors.composite +++ b/java/sca/itest/jms/args/src/main/resources/selectors/selectors.composite @@ -17,9 +17,8 @@ * specific language governing permissions and limitations * under the License. --> - diff --git a/java/sca/itest/jms/args/src/test/java/org/apache/tuscany/sca/binding/jms/ArgsTestCase.java b/java/sca/itest/jms/args/src/test/java/org/apache/tuscany/sca/binding/jms/ArgsTestCase.java index 228366d596..28e0b530c1 100644 --- a/java/sca/itest/jms/args/src/test/java/org/apache/tuscany/sca/binding/jms/ArgsTestCase.java +++ b/java/sca/itest/jms/args/src/test/java/org/apache/tuscany/sca/binding/jms/ArgsTestCase.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; @@ -29,16 +30,16 @@ import org.junit.Test; */ public class ArgsTestCase { - private static SCADomain scaDomain; + private Node node; @Before public void init() { - scaDomain = SCADomain.newInstance("http://localhost", "/", "selectors/selectors.composite"); + node = NodeFactory.newInstance().createNode().start(); } @Test public void testSayHello() throws Exception { - MyService client1 = scaDomain.getService(MyService.class, "Client1"); + MyService client1 = node.getService(MyService.class, "Client1"); client1.sayHello("petra", "beate"); @@ -54,8 +55,8 @@ public class ArgsTestCase { @After public void end() { - if (scaDomain != null) { - scaDomain.close(); + if (node != null) { + node.stop(); } } } -- cgit v1.2.3