From 9f395ebf3ec27f89c8dc63137bc99c8d6b0cff6d Mon Sep 17 00:00:00 2001 From: lresende Date: Wed, 11 Nov 2009 23:07:37 +0000 Subject: Moving 1.x branches git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@835125 13f79535-47bb-0310-9956-ffa450edef68 --- branches/sca-java-1.2/itest/jms/pom.xml | 85 ---------------------- .../tuscany/sca/binding/jms/CheckedExcpetion.java | 28 ------- .../tuscany/sca/binding/jms/ExceptionService.java | 30 -------- .../sca/binding/jms/ExceptionServiceClient.java | 45 ------------ .../sca/binding/jms/ExceptionServiceImpl.java | 32 -------- .../sca/binding/jms/HelloWorldClientImpl.java | 41 ----------- .../tuscany/sca/binding/jms/HelloWorldService.java | 26 ------- .../sca/binding/jms/HelloWorldServiceImpl.java | 30 -------- .../tuscany/sca/binding/jms/OneWayClientImpl.java | 41 ----------- .../tuscany/sca/binding/jms/OneWayService.java | 29 -------- .../tuscany/sca/binding/jms/OneWayServiceImpl.java | 34 --------- .../sca/binding/jms/TestMessageProcessor.java | 57 --------------- .../src/main/resources/defaults/client.composite | 33 --------- .../src/main/resources/defaults/service.composite | 30 -------- .../src/main/resources/dynamic/client.composite | 36 --------- .../src/main/resources/exceptions/client.composite | 33 --------- .../main/resources/exceptions/service.composite | 30 -------- .../src/main/resources/external/client.composite | 38 ---------- .../src/main/resources/external/service.composite | 35 --------- .../itest/jms/src/main/resources/jndi.properties | 39 ---------- .../main/resources/oneway/OneWayClient.composite | 35 --------- .../main/resources/oneway/OneWayService.composite | 32 -------- .../jms/src/main/resources/simple/client.composite | 38 ---------- .../src/main/resources/simple/mpclient.composite | 38 ---------- .../src/main/resources/simple/service.composite | 35 --------- .../src/main/resources/simple/uriclient.composite | 33 --------- .../tuscany/sca/binding/jms/DefaultsTestCase.java | 54 -------------- .../sca/binding/jms/DynamicReplyQTestCase.java | 53 -------------- .../sca/binding/jms/ExceptionsTestCase.java | 70 ------------------ .../sca/binding/jms/ExternalBrokerTestCase.java | 70 ------------------ .../sca/binding/jms/MessageProcessorTestCase.java | 58 --------------- .../tuscany/sca/binding/jms/OneWayTestCase.java | 58 --------------- .../tuscany/sca/binding/jms/RPCTestCase.java | 54 -------------- .../tuscany/sca/binding/jms/URIRPCTestCase.java | 54 -------------- 34 files changed, 1434 deletions(-) delete mode 100644 branches/sca-java-1.2/itest/jms/pom.xml delete mode 100644 branches/sca-java-1.2/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/CheckedExcpetion.java delete mode 100644 branches/sca-java-1.2/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/ExceptionService.java delete mode 100644 branches/sca-java-1.2/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/ExceptionServiceClient.java delete mode 100644 branches/sca-java-1.2/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/ExceptionServiceImpl.java delete mode 100644 branches/sca-java-1.2/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldClientImpl.java delete mode 100644 branches/sca-java-1.2/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldService.java delete mode 100644 branches/sca-java-1.2/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldServiceImpl.java delete mode 100644 branches/sca-java-1.2/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayClientImpl.java delete mode 100644 branches/sca-java-1.2/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayService.java delete mode 100644 branches/sca-java-1.2/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayServiceImpl.java delete mode 100644 branches/sca-java-1.2/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/TestMessageProcessor.java delete mode 100644 branches/sca-java-1.2/itest/jms/src/main/resources/defaults/client.composite delete mode 100644 branches/sca-java-1.2/itest/jms/src/main/resources/defaults/service.composite delete mode 100644 branches/sca-java-1.2/itest/jms/src/main/resources/dynamic/client.composite delete mode 100644 branches/sca-java-1.2/itest/jms/src/main/resources/exceptions/client.composite delete mode 100644 branches/sca-java-1.2/itest/jms/src/main/resources/exceptions/service.composite delete mode 100644 branches/sca-java-1.2/itest/jms/src/main/resources/external/client.composite delete mode 100644 branches/sca-java-1.2/itest/jms/src/main/resources/external/service.composite delete mode 100644 branches/sca-java-1.2/itest/jms/src/main/resources/jndi.properties delete mode 100644 branches/sca-java-1.2/itest/jms/src/main/resources/oneway/OneWayClient.composite delete mode 100644 branches/sca-java-1.2/itest/jms/src/main/resources/oneway/OneWayService.composite delete mode 100644 branches/sca-java-1.2/itest/jms/src/main/resources/simple/client.composite delete mode 100644 branches/sca-java-1.2/itest/jms/src/main/resources/simple/mpclient.composite delete mode 100644 branches/sca-java-1.2/itest/jms/src/main/resources/simple/service.composite delete mode 100644 branches/sca-java-1.2/itest/jms/src/main/resources/simple/uriclient.composite delete mode 100644 branches/sca-java-1.2/itest/jms/src/test/java/org/apache/tuscany/sca/binding/jms/DefaultsTestCase.java delete mode 100644 branches/sca-java-1.2/itest/jms/src/test/java/org/apache/tuscany/sca/binding/jms/DynamicReplyQTestCase.java delete mode 100644 branches/sca-java-1.2/itest/jms/src/test/java/org/apache/tuscany/sca/binding/jms/ExceptionsTestCase.java delete mode 100644 branches/sca-java-1.2/itest/jms/src/test/java/org/apache/tuscany/sca/binding/jms/ExternalBrokerTestCase.java delete mode 100644 branches/sca-java-1.2/itest/jms/src/test/java/org/apache/tuscany/sca/binding/jms/MessageProcessorTestCase.java delete mode 100644 branches/sca-java-1.2/itest/jms/src/test/java/org/apache/tuscany/sca/binding/jms/OneWayTestCase.java delete mode 100644 branches/sca-java-1.2/itest/jms/src/test/java/org/apache/tuscany/sca/binding/jms/RPCTestCase.java delete mode 100644 branches/sca-java-1.2/itest/jms/src/test/java/org/apache/tuscany/sca/binding/jms/URIRPCTestCase.java (limited to 'branches/sca-java-1.2/itest/jms') diff --git a/branches/sca-java-1.2/itest/jms/pom.xml b/branches/sca-java-1.2/itest/jms/pom.xml deleted file mode 100644 index a12e35b815..0000000000 --- a/branches/sca-java-1.2/itest/jms/pom.xml +++ /dev/null @@ -1,85 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 1.2-incubating-SNAPSHOT - ../../pom.xml - - itest-jms - Apache Tuscany SCA JMS Tests - - - - apache.incubator - http://people.apache.org/repo/m2-incubating-repository - - - - - - - org.apache.tuscany.sca - tuscany-sca-api - 1.2-incubating-SNAPSHOT - - - - org.apache.tuscany.sca - tuscany-host-embedded - 1.2-incubating-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 1.2-incubating-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-binding-jms - 1.2-incubating-SNAPSHOT - - - - junit - junit - 4.2 - test - - - - org.apache.activemq - activemq-core - 4.1.1 - test - - - - - - ${artifactId} - - diff --git a/branches/sca-java-1.2/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/CheckedExcpetion.java b/branches/sca-java-1.2/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/CheckedExcpetion.java deleted file mode 100644 index 7b1c63d437..0000000000 --- a/branches/sca-java-1.2/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/CheckedExcpetion.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 org.apache.tuscany.sca.binding.jms; - -public class CheckedExcpetion extends Exception { - private static final long serialVersionUID = 1L; - - public CheckedExcpetion(String s) { - super(s); - } -} diff --git a/branches/sca-java-1.2/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/ExceptionService.java b/branches/sca-java-1.2/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/ExceptionService.java deleted file mode 100644 index 46bf911def..0000000000 --- a/branches/sca-java-1.2/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/ExceptionService.java +++ /dev/null @@ -1,30 +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 org.apache.tuscany.sca.binding.jms; - -import org.osoa.sca.annotations.Remotable; - -@Remotable -public interface ExceptionService { - - public void throwChecked() throws CheckedExcpetion; - - public void throwUnChecked(); -} diff --git a/branches/sca-java-1.2/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/ExceptionServiceClient.java b/branches/sca-java-1.2/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/ExceptionServiceClient.java deleted file mode 100644 index cd3c09e17f..0000000000 --- a/branches/sca-java-1.2/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/ExceptionServiceClient.java +++ /dev/null @@ -1,45 +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 org.apache.tuscany.sca.binding.jms; - -import org.osoa.sca.annotations.Reference; -import org.osoa.sca.annotations.Service; - -/** - * This class implements the HelloWorld service. - */ -@Service(ExceptionService.class) -public class ExceptionServiceClient implements ExceptionService { - - private ExceptionService service; - - @Reference - public void setService(ExceptionService service) { - this.service = service; - } - - public void throwChecked() throws CheckedExcpetion { - service.throwChecked(); - } - - public void throwUnChecked() { - service.throwUnChecked(); - } - -} diff --git a/branches/sca-java-1.2/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/ExceptionServiceImpl.java b/branches/sca-java-1.2/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/ExceptionServiceImpl.java deleted file mode 100644 index ab293a5df1..0000000000 --- a/branches/sca-java-1.2/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/ExceptionServiceImpl.java +++ /dev/null @@ -1,32 +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 org.apache.tuscany.sca.binding.jms; - -public class ExceptionServiceImpl implements ExceptionService { - - public void throwChecked() throws CheckedExcpetion { - throw new CheckedExcpetion("foo"); - } - - public void throwUnChecked() { - throw new RuntimeException("bla"); - } - -} diff --git a/branches/sca-java-1.2/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldClientImpl.java b/branches/sca-java-1.2/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldClientImpl.java deleted file mode 100644 index 86d4719646..0000000000 --- a/branches/sca-java-1.2/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldClientImpl.java +++ /dev/null @@ -1,41 +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 org.apache.tuscany.sca.binding.jms; - -import org.osoa.sca.annotations.Reference; -import org.osoa.sca.annotations.Service; - -/** - * This class implements the HelloWorld service. - */ -@Service(HelloWorldService.class) -public class HelloWorldClientImpl implements HelloWorldService { - - private HelloWorldService serviceA; - - @Reference - public void setServiceA(HelloWorldService service) { - this.serviceA = service; - } - - public String sayHello(String name) { - return serviceA.sayHello(name); - } - -} diff --git a/branches/sca-java-1.2/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldService.java b/branches/sca-java-1.2/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldService.java deleted file mode 100644 index abb29aec4c..0000000000 --- a/branches/sca-java-1.2/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldService.java +++ /dev/null @@ -1,26 +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 org.apache.tuscany.sca.binding.jms; - -import org.osoa.sca.annotations.Remotable; - -@Remotable -public interface HelloWorldService { - String sayHello(String name); -} diff --git a/branches/sca-java-1.2/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldServiceImpl.java b/branches/sca-java-1.2/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldServiceImpl.java deleted file mode 100644 index 21d2de2cf0..0000000000 --- a/branches/sca-java-1.2/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/HelloWorldServiceImpl.java +++ /dev/null @@ -1,30 +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 org.apache.tuscany.sca.binding.jms; - -public class HelloWorldServiceImpl implements HelloWorldService { - - public String sayHello(String name) { - if ("bang".equals(name)) { - throw new RuntimeException("blem wit"); - } - return "jmsHello " + name; - } - -} diff --git a/branches/sca-java-1.2/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayClientImpl.java b/branches/sca-java-1.2/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayClientImpl.java deleted file mode 100644 index 218cccf64c..0000000000 --- a/branches/sca-java-1.2/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayClientImpl.java +++ /dev/null @@ -1,41 +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 org.apache.tuscany.sca.binding.jms; - -import org.osoa.sca.annotations.Reference; -import org.osoa.sca.annotations.Service; - -/** - * This class implements the OneWay service. - */ -@Service(OneWayService.class) -public class OneWayClientImpl implements OneWayService { - - private OneWayService serviceA; - - @Reference - public void setServiceA(OneWayService service) { - this.serviceA = service; - } - - public void sayHello(String name) { - serviceA.sayHello(name); - } - -} diff --git a/branches/sca-java-1.2/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayService.java b/branches/sca-java-1.2/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayService.java deleted file mode 100644 index f16f853ba7..0000000000 --- a/branches/sca-java-1.2/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayService.java +++ /dev/null @@ -1,29 +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 org.apache.tuscany.sca.binding.jms; - -import org.osoa.sca.annotations.OneWay; -import org.osoa.sca.annotations.Remotable; - -@Remotable -public interface OneWayService { - - @OneWay - void sayHello(String name); -} diff --git a/branches/sca-java-1.2/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayServiceImpl.java b/branches/sca-java-1.2/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayServiceImpl.java deleted file mode 100644 index bff4536fa0..0000000000 --- a/branches/sca-java-1.2/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/OneWayServiceImpl.java +++ /dev/null @@ -1,34 +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 org.apache.tuscany.sca.binding.jms; - -public class OneWayServiceImpl implements OneWayService { - - public static Object mutex = new Object(); - public static String name; - - public void sayHello(String name) { - OneWayServiceImpl.name = name; - synchronized (OneWayServiceImpl.mutex) { - OneWayServiceImpl.mutex.notify(); - } - } - -} diff --git a/branches/sca-java-1.2/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/TestMessageProcessor.java b/branches/sca-java-1.2/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/TestMessageProcessor.java deleted file mode 100644 index 9668bd119f..0000000000 --- a/branches/sca-java-1.2/itest/jms/src/main/java/org/apache/tuscany/sca/binding/jms/TestMessageProcessor.java +++ /dev/null @@ -1,57 +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 org.apache.tuscany.sca.binding.jms; - -import javax.jms.Message; -import javax.jms.Session; - -import org.apache.tuscany.sca.binding.jms.impl.JMSBinding; -import org.apache.tuscany.sca.binding.jms.provider.JMSMessageProcessorImpl; - -public class TestMessageProcessor extends JMSMessageProcessorImpl { - - public static boolean insertPayloadIntoJMSMessageCalled; - public static boolean extractPayloadFromJMSMessageCalled; - public static boolean setOperationNameCalled; - - public TestMessageProcessor(JMSBinding jmsBinding) { - super(jmsBinding); - } - public Object extractPayloadFromJMSMessage(Message message) { - extractPayloadFromJMSMessageCalled = true; - return super.extractPayloadFromJMSMessage(message); - } - - public String getOperationName(Message message) { - // is this used? - return super.getOperationName(message); - } - - public Message insertPayloadIntoJMSMessage(Session session, Object payload) { - insertPayloadIntoJMSMessageCalled = true; - return super.insertPayloadIntoJMSMessage(session, payload); - } - - public void setOperationName(String operationName, Message message) { - setOperationNameCalled = true; - super.setOperationName(operationName, message); - } - -} diff --git a/branches/sca-java-1.2/itest/jms/src/main/resources/defaults/client.composite b/branches/sca-java-1.2/itest/jms/src/main/resources/defaults/client.composite deleted file mode 100644 index 02c04e6afd..0000000000 --- a/branches/sca-java-1.2/itest/jms/src/main/resources/defaults/client.composite +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/branches/sca-java-1.2/itest/jms/src/main/resources/defaults/service.composite b/branches/sca-java-1.2/itest/jms/src/main/resources/defaults/service.composite deleted file mode 100644 index 45c1819e2b..0000000000 --- a/branches/sca-java-1.2/itest/jms/src/main/resources/defaults/service.composite +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - - - - diff --git a/branches/sca-java-1.2/itest/jms/src/main/resources/dynamic/client.composite b/branches/sca-java-1.2/itest/jms/src/main/resources/dynamic/client.composite deleted file mode 100644 index 494fe9790f..0000000000 --- a/branches/sca-java-1.2/itest/jms/src/main/resources/dynamic/client.composite +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/branches/sca-java-1.2/itest/jms/src/main/resources/exceptions/client.composite b/branches/sca-java-1.2/itest/jms/src/main/resources/exceptions/client.composite deleted file mode 100644 index 8bb7f86252..0000000000 --- a/branches/sca-java-1.2/itest/jms/src/main/resources/exceptions/client.composite +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/branches/sca-java-1.2/itest/jms/src/main/resources/exceptions/service.composite b/branches/sca-java-1.2/itest/jms/src/main/resources/exceptions/service.composite deleted file mode 100644 index 052ff9d985..0000000000 --- a/branches/sca-java-1.2/itest/jms/src/main/resources/exceptions/service.composite +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - - - - diff --git a/branches/sca-java-1.2/itest/jms/src/main/resources/external/client.composite b/branches/sca-java-1.2/itest/jms/src/main/resources/external/client.composite deleted file mode 100644 index dcea428493..0000000000 --- a/branches/sca-java-1.2/itest/jms/src/main/resources/external/client.composite +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - - - - - - - - - - diff --git a/branches/sca-java-1.2/itest/jms/src/main/resources/external/service.composite b/branches/sca-java-1.2/itest/jms/src/main/resources/external/service.composite deleted file mode 100644 index 44b7b29610..0000000000 --- a/branches/sca-java-1.2/itest/jms/src/main/resources/external/service.composite +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/branches/sca-java-1.2/itest/jms/src/main/resources/jndi.properties b/branches/sca-java-1.2/itest/jms/src/main/resources/jndi.properties deleted file mode 100644 index 9abdff215d..0000000000 --- a/branches/sca-java-1.2/itest/jms/src/main/resources/jndi.properties +++ /dev/null @@ -1,39 +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. -## --------------------------------------------------------------------------- - -# START SNIPPET: jndi - -java.naming.factory.initial = org.apache.activemq.jndi.ActiveMQInitialContextFactory - -# use the following property to configure the default connector -java.naming.provider.url = vm://localhost?broker.persistent=false - -# use the following property to specify the JNDI name the connection factory -# should appear as. -#connectionFactoryNames = connectionFactory, queueConnectionFactory, topicConnectionFactry -connectionFactoryNames = ConnectionFactory - -# register some queues in JNDI using the form -# queue.[jndiName] = [physicalName] -queue.RequestQueue = RequestQueue -queue.ResponseQueue = ResponseQueue - -# register some topics in JNDI using the form -# topic.[jndiName] = [physicalName] -#topic.MyTopic = example.MyTopic - -# END SNIPPET: jndi diff --git a/branches/sca-java-1.2/itest/jms/src/main/resources/oneway/OneWayClient.composite b/branches/sca-java-1.2/itest/jms/src/main/resources/oneway/OneWayClient.composite deleted file mode 100644 index cd9a62ee6f..0000000000 --- a/branches/sca-java-1.2/itest/jms/src/main/resources/oneway/OneWayClient.composite +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/branches/sca-java-1.2/itest/jms/src/main/resources/oneway/OneWayService.composite b/branches/sca-java-1.2/itest/jms/src/main/resources/oneway/OneWayService.composite deleted file mode 100644 index 3c53881141..0000000000 --- a/branches/sca-java-1.2/itest/jms/src/main/resources/oneway/OneWayService.composite +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - - - - - - - - diff --git a/branches/sca-java-1.2/itest/jms/src/main/resources/simple/client.composite b/branches/sca-java-1.2/itest/jms/src/main/resources/simple/client.composite deleted file mode 100644 index 3f5229a30c..0000000000 --- a/branches/sca-java-1.2/itest/jms/src/main/resources/simple/client.composite +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - - - - - - - - - - diff --git a/branches/sca-java-1.2/itest/jms/src/main/resources/simple/mpclient.composite b/branches/sca-java-1.2/itest/jms/src/main/resources/simple/mpclient.composite deleted file mode 100644 index 2c8dc463e0..0000000000 --- a/branches/sca-java-1.2/itest/jms/src/main/resources/simple/mpclient.composite +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - - - - - - - - - - diff --git a/branches/sca-java-1.2/itest/jms/src/main/resources/simple/service.composite b/branches/sca-java-1.2/itest/jms/src/main/resources/simple/service.composite deleted file mode 100644 index 47200f9005..0000000000 --- a/branches/sca-java-1.2/itest/jms/src/main/resources/simple/service.composite +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/branches/sca-java-1.2/itest/jms/src/main/resources/simple/uriclient.composite b/branches/sca-java-1.2/itest/jms/src/main/resources/simple/uriclient.composite deleted file mode 100644 index a6c9ee3822..0000000000 --- a/branches/sca-java-1.2/itest/jms/src/main/resources/simple/uriclient.composite +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/branches/sca-java-1.2/itest/jms/src/test/java/org/apache/tuscany/sca/binding/jms/DefaultsTestCase.java b/branches/sca-java-1.2/itest/jms/src/test/java/org/apache/tuscany/sca/binding/jms/DefaultsTestCase.java deleted file mode 100644 index dca9386637..0000000000 --- a/branches/sca-java-1.2/itest/jms/src/test/java/org/apache/tuscany/sca/binding/jms/DefaultsTestCase.java +++ /dev/null @@ -1,54 +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 org.apache.tuscany.sca.binding.jms; - -import static org.junit.Assert.assertEquals; - -import org.apache.tuscany.sca.host.embedded.SCADomain; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -/** - * This shows how to test the JMS binding using a simple HelloWorld application. - */ -public class DefaultsTestCase { - - private static SCADomain scaDomain; - - @Before - public void init() { - scaDomain = - SCADomain.newInstance("http://localhost", "/", "defaults/client.composite", "defaults/service.composite"); - // scaDomain = SCADomain.newInstance("http://localhost", "/", "simple/client.composite"); - } - - @Test - public void testHelloWorldCreate() throws Exception { - HelloWorldService helloWorldService = scaDomain.getService(HelloWorldService.class, "HelloWorldClient"); - assertEquals("jmsHello Petra", helloWorldService.sayHello("Petra")); - } - - @After - public void end() { - if (scaDomain != null) { - scaDomain.close(); - } - } -} diff --git a/branches/sca-java-1.2/itest/jms/src/test/java/org/apache/tuscany/sca/binding/jms/DynamicReplyQTestCase.java b/branches/sca-java-1.2/itest/jms/src/test/java/org/apache/tuscany/sca/binding/jms/DynamicReplyQTestCase.java deleted file mode 100644 index 41fbf04c0a..0000000000 --- a/branches/sca-java-1.2/itest/jms/src/test/java/org/apache/tuscany/sca/binding/jms/DynamicReplyQTestCase.java +++ /dev/null @@ -1,53 +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 org.apache.tuscany.sca.binding.jms; - -import static org.junit.Assert.assertEquals; - -import org.apache.tuscany.sca.host.embedded.SCADomain; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -/** - * This shows how to test the JMS binding using a simple HelloWorld application. - */ -public class DynamicReplyQTestCase { - - private static SCADomain scaDomain; - - @Before - public void init() { - scaDomain = - SCADomain.newInstance("http://localhost", "/dynamic", "dynamic/client.composite", "simple/service.composite"); - } - - @Test - public void testHelloWorldCreate() throws Exception { - HelloWorldService helloWorldService = scaDomain.getService(HelloWorldService.class, "HelloWorldClient"); - assertEquals("jmsHello Beate", helloWorldService.sayHello("Beate")); - } - - @After - public void end() { - if (scaDomain != null) { - scaDomain.close(); - } - } -} diff --git a/branches/sca-java-1.2/itest/jms/src/test/java/org/apache/tuscany/sca/binding/jms/ExceptionsTestCase.java b/branches/sca-java-1.2/itest/jms/src/test/java/org/apache/tuscany/sca/binding/jms/ExceptionsTestCase.java deleted file mode 100644 index 051be93f22..0000000000 --- a/branches/sca-java-1.2/itest/jms/src/test/java/org/apache/tuscany/sca/binding/jms/ExceptionsTestCase.java +++ /dev/null @@ -1,70 +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 org.apache.tuscany.sca.binding.jms; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.fail; - -import org.apache.tuscany.sca.host.embedded.SCADomain; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -/** - * This shows how to test the JMS binding using a simple HelloWorld application. - */ -public class ExceptionsTestCase { - - private static SCADomain scaDomain; - - @Before - public void init() { - scaDomain = - SCADomain.newInstance("http://localhost", "/", "exceptions/client.composite", "exceptions/service.composite"); - } - - @Test - public void testChecked() { - ExceptionService service = scaDomain.getService(ExceptionService.class, "ExceptionServiceClient"); - try { - service.throwChecked(); - fail(); - } catch (CheckedExcpetion e) { - assertEquals("foo", e.getMessage()); - } - } - - @Test - public void testUnChecked() { - ExceptionService service = scaDomain.getService(ExceptionService.class, "ExceptionServiceClient"); - try { - service.throwUnChecked(); - fail(); - } catch (Exception e) { - assertEquals("bla", e.getCause().getCause().getMessage()); - } - } - - @After - public void end() { - if (scaDomain != null) { - scaDomain.close(); - } - } -} diff --git a/branches/sca-java-1.2/itest/jms/src/test/java/org/apache/tuscany/sca/binding/jms/ExternalBrokerTestCase.java b/branches/sca-java-1.2/itest/jms/src/test/java/org/apache/tuscany/sca/binding/jms/ExternalBrokerTestCase.java deleted file mode 100644 index c34ad07901..0000000000 --- a/branches/sca-java-1.2/itest/jms/src/test/java/org/apache/tuscany/sca/binding/jms/ExternalBrokerTestCase.java +++ /dev/null @@ -1,70 +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 org.apache.tuscany.sca.binding.jms; - -import static org.junit.Assert.assertEquals; - -import org.apache.activemq.broker.BrokerService; -import org.apache.tuscany.sca.host.embedded.SCADomain; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -/** - * Tests using the JMS binding with an external JMS broker - */ -public class ExternalBrokerTestCase { - - private static SCADomain scaDomain; - private BrokerService broker; - - @Before - public void init() throws Exception { - startBroker(); - scaDomain = SCADomain.newInstance("http://localhost", "/", "external/client.composite", "external/service.composite"); - } - - @Test - public void testHelloWorldCreate() throws Exception { - HelloWorldService helloWorldService = scaDomain.getService(HelloWorldService.class, "HelloWorldClient"); - assertEquals("jmsHello Petra", helloWorldService.sayHello("Petra")); - } - - @After - public void end() throws Exception { - if (scaDomain != null) { - scaDomain.close(); - } - stopBroker(); - } - - protected void startBroker() throws Exception { - broker = new BrokerService(); - broker.setPersistent(false); - broker.setUseJmx(false); - broker.addConnector("tcp://localhost:61616"); - broker.start(); - } - protected void stopBroker() throws Exception { - if (broker != null) { - broker.stop(); - } - } - -} diff --git a/branches/sca-java-1.2/itest/jms/src/test/java/org/apache/tuscany/sca/binding/jms/MessageProcessorTestCase.java b/branches/sca-java-1.2/itest/jms/src/test/java/org/apache/tuscany/sca/binding/jms/MessageProcessorTestCase.java deleted file mode 100644 index 9ec77ca440..0000000000 --- a/branches/sca-java-1.2/itest/jms/src/test/java/org/apache/tuscany/sca/binding/jms/MessageProcessorTestCase.java +++ /dev/null @@ -1,58 +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 org.apache.tuscany.sca.binding.jms; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertTrue; - -import org.apache.tuscany.sca.host.embedded.SCADomain; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -/** - * This shows how to test the JMS binding using a simple HelloWorld application. - */ -public class MessageProcessorTestCase { - - private static SCADomain scaDomain; - - @Before - public void init() { - scaDomain = - SCADomain.newInstance("http://localhost", "/", "simple/mpclient.composite", "simple/service.composite"); - // scaDomain = SCADomain.newInstance("http://localhost", "/", "simple/client.composite"); - } - - @Test - public void testHelloWorldCreate() throws Exception { - HelloWorldService helloWorldService = scaDomain.getService(HelloWorldService.class, "HelloWorldClient"); - assertEquals("jmsHello Petra", helloWorldService.sayHello("Petra")); - assertTrue(TestMessageProcessor.extractPayloadFromJMSMessageCalled); - assertTrue(TestMessageProcessor.insertPayloadIntoJMSMessageCalled); - assertTrue(TestMessageProcessor.setOperationNameCalled); - } - - @After - public void end() { - if (scaDomain != null) { - scaDomain.close(); - } - } -} diff --git a/branches/sca-java-1.2/itest/jms/src/test/java/org/apache/tuscany/sca/binding/jms/OneWayTestCase.java b/branches/sca-java-1.2/itest/jms/src/test/java/org/apache/tuscany/sca/binding/jms/OneWayTestCase.java deleted file mode 100644 index 26dda13cf9..0000000000 --- a/branches/sca-java-1.2/itest/jms/src/test/java/org/apache/tuscany/sca/binding/jms/OneWayTestCase.java +++ /dev/null @@ -1,58 +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 org.apache.tuscany.sca.binding.jms; - -import static org.junit.Assert.assertEquals; - -import org.apache.tuscany.sca.host.embedded.SCADomain; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -/** - * This shows how to test the JMS binding using a simple HelloWorld application. - */ -public class OneWayTestCase { - - private static SCADomain scaDomain; - - @Before - public void init() { - scaDomain = SCADomain.newInstance("http://localhost", "/", "oneway/OneWayClient.composite", "oneway/OneWayService.composite"); - } - - @Test - public void testOneWayInvoked() throws Exception { - OneWayService oneWayService = scaDomain.getService(OneWayService.class, "OneWayClient"); - oneWayService.sayHello("Petra"); - synchronized (OneWayServiceImpl.mutex) { - // wait up to 10 seconds but it will likely be a lot less - // as the service invocation will wake this up earlier - OneWayServiceImpl.mutex.wait(10000); - } - assertEquals("Petra", OneWayServiceImpl.name); - } - - @After - public void end() { - if (scaDomain != null) { - scaDomain.close(); - } - } -} diff --git a/branches/sca-java-1.2/itest/jms/src/test/java/org/apache/tuscany/sca/binding/jms/RPCTestCase.java b/branches/sca-java-1.2/itest/jms/src/test/java/org/apache/tuscany/sca/binding/jms/RPCTestCase.java deleted file mode 100644 index c1882a1e26..0000000000 --- a/branches/sca-java-1.2/itest/jms/src/test/java/org/apache/tuscany/sca/binding/jms/RPCTestCase.java +++ /dev/null @@ -1,54 +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 org.apache.tuscany.sca.binding.jms; - -import static org.junit.Assert.assertEquals; - -import org.apache.tuscany.sca.host.embedded.SCADomain; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -/** - * This shows how to test the JMS binding using a simple HelloWorld application. - */ -public class RPCTestCase { - - private static SCADomain scaDomain; - - @Before - public void init() { - scaDomain = - SCADomain.newInstance("http://localhost", "/", "simple/client.composite", "simple/service.composite"); - // scaDomain = SCADomain.newInstance("http://localhost", "/", "simple/client.composite"); - } - - @Test - public void testHelloWorldCreate() throws Exception { - HelloWorldService helloWorldService = scaDomain.getService(HelloWorldService.class, "HelloWorldClient"); - assertEquals("jmsHello Petra", helloWorldService.sayHello("Petra")); - } - - @After - public void end() { - if (scaDomain != null) { - scaDomain.close(); - } - } -} diff --git a/branches/sca-java-1.2/itest/jms/src/test/java/org/apache/tuscany/sca/binding/jms/URIRPCTestCase.java b/branches/sca-java-1.2/itest/jms/src/test/java/org/apache/tuscany/sca/binding/jms/URIRPCTestCase.java deleted file mode 100644 index bed5515d7f..0000000000 --- a/branches/sca-java-1.2/itest/jms/src/test/java/org/apache/tuscany/sca/binding/jms/URIRPCTestCase.java +++ /dev/null @@ -1,54 +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 org.apache.tuscany.sca.binding.jms; - -import static org.junit.Assert.assertEquals; - -import org.apache.tuscany.sca.host.embedded.SCADomain; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -/** - * This shows how to test the JMS binding using a simple HelloWorld application. - */ -public class URIRPCTestCase { - - private static SCADomain scaDomain; - - @Before - public void init() { - scaDomain = - SCADomain.newInstance("http://localhost", "/", "simple/uriclient.composite", "simple/service.composite"); - // scaDomain = SCADomain.newInstance("http://localhost", "/", "simple/client.composite"); - } - - @Test - public void testHelloWorldCreate() throws Exception { - HelloWorldService helloWorldService = scaDomain.getService(HelloWorldService.class, "HelloWorldClient"); - assertEquals("jmsHello Petra", helloWorldService.sayHello("Petra")); - } - - @After - public void end() { - if (scaDomain != null) { - scaDomain.close(); - } - } -} -- cgit v1.2.3