From a40e527938d76ba71f211da7e327adb50384ba69 Mon Sep 17 00:00:00 2001 From: lresende Date: Wed, 11 Nov 2009 23:26:33 +0000 Subject: Moving 1.x tags git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@835157 13f79535-47bb-0310-9956-ffa450edef68 --- .../1.5.1-RC1/itest/callablereferences-ws/pom.xml | 59 ------------- .../src/main/java/com/example/ExampleClient.java | 26 ------ .../main/java/com/example/ExampleClientImpl.java | 59 ------------- .../src/main/java/com/example/ExampleService.java | 30 ------- .../main/java/com/example/ExampleServiceImpl.java | 33 -------- .../sca/itest/callablerefwsreturn/Alpha.java | 26 ------ .../sca/itest/callablerefwsreturn/AlphaImpl.java | 96 ---------------------- .../sca/itest/callablerefwsreturn/Beta.java | 27 ------ .../sca/itest/callablerefwsreturn/BetaImpl.java | 46 ----------- .../sca/itest/callablerefwsreturn/Gamma.java | 34 -------- .../sca/itest/callablerefwsreturn/GammaImpl.java | 49 ----------- .../CallableReferenceWsReturnTest.composite | 54 ------------ .../src/main/resources/example.composite | 40 --------- .../src/test/java/com/example/ExampleTestCase.java | 44 ---------- .../CallableReferenceReturnTestCase.java | 49 ----------- 15 files changed, 672 deletions(-) delete mode 100644 tags/java/sca/1.5.1-RC1/itest/callablereferences-ws/pom.xml delete mode 100644 tags/java/sca/1.5.1-RC1/itest/callablereferences-ws/src/main/java/com/example/ExampleClient.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/callablereferences-ws/src/main/java/com/example/ExampleClientImpl.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/callablereferences-ws/src/main/java/com/example/ExampleService.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/callablereferences-ws/src/main/java/com/example/ExampleServiceImpl.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/callablereferences-ws/src/main/java/org/apache/tuscany/sca/itest/callablerefwsreturn/Alpha.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/callablereferences-ws/src/main/java/org/apache/tuscany/sca/itest/callablerefwsreturn/AlphaImpl.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/callablereferences-ws/src/main/java/org/apache/tuscany/sca/itest/callablerefwsreturn/Beta.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/callablereferences-ws/src/main/java/org/apache/tuscany/sca/itest/callablerefwsreturn/BetaImpl.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/callablereferences-ws/src/main/java/org/apache/tuscany/sca/itest/callablerefwsreturn/Gamma.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/callablereferences-ws/src/main/java/org/apache/tuscany/sca/itest/callablerefwsreturn/GammaImpl.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/callablereferences-ws/src/main/resources/CallableReferenceWsReturnTest.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/callablereferences-ws/src/main/resources/example.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/callablereferences-ws/src/test/java/com/example/ExampleTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/callablereferences-ws/src/test/java/org/apache/tuscany/sca/itest/callablerefws/CallableReferenceReturnTestCase.java (limited to 'tags/java/sca/1.5.1-RC1/itest/callablereferences-ws') diff --git a/tags/java/sca/1.5.1-RC1/itest/callablereferences-ws/pom.xml b/tags/java/sca/1.5.1-RC1/itest/callablereferences-ws/pom.xml deleted file mode 100644 index cff55122fc..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/callablereferences-ws/pom.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 1.5.1 - ../pom.xml - - itest-callablereferences-ws - Apache Tuscany SCA iTest Callable References over Web Services - - - - org.apache.tuscany.sca - tuscany-host-embedded - 1.5.1 - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 1.5.1 - runtime - - - - org.apache.tuscany.sca - tuscany-binding-ws-axis2 - 1.5.1 - runtime - - - - org.apache.tuscany.sca - tuscany-host-tomcat - 1.5.1 - runtime - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/callablereferences-ws/src/main/java/com/example/ExampleClient.java b/tags/java/sca/1.5.1-RC1/itest/callablereferences-ws/src/main/java/com/example/ExampleClient.java deleted file mode 100644 index ecf1ac27e1..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/callablereferences-ws/src/main/java/com/example/ExampleClient.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 com.example; - -public interface ExampleClient { - - void runTest(); - - void sayHello(String name); -} diff --git a/tags/java/sca/1.5.1-RC1/itest/callablereferences-ws/src/main/java/com/example/ExampleClientImpl.java b/tags/java/sca/1.5.1-RC1/itest/callablereferences-ws/src/main/java/com/example/ExampleClientImpl.java deleted file mode 100644 index c46087d865..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/callablereferences-ws/src/main/java/com/example/ExampleClientImpl.java +++ /dev/null @@ -1,59 +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 com.example; - -import org.osoa.sca.CallableReference; -import org.osoa.sca.ComponentContext; -import org.osoa.sca.ServiceReference; -import org.osoa.sca.annotations.Context; -import org.osoa.sca.annotations.Reference; -import org.osoa.sca.annotations.Scope; -import org.osoa.sca.annotations.Service; - -@Service(ExampleClient.class) -@Scope("COMPOSITE") -public class ExampleClientImpl implements ExampleClient { - - private ExampleService myService; - - @Context - protected ComponentContext context; - - @Reference - public void setMyService(ExampleService myService) { - this.myService = myService; - } - - public void runTest() { - ServiceReference ref = context.createSelfReference(ExampleClient.class); - ref.getService().sayHello("Jack"); - CallableReference result = myService.hello("Jill", ref); - if (result != null) { - ((CallableReference)result).getService().sayHello("John"); - } - result = myService.hello("Jane", null); - if (result != null) { - ((CallableReference)result).getService().sayHello("Jim"); - } - } - - public void sayHello(String name) { - System.out.println("Hello, client " + name + "!"); - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/callablereferences-ws/src/main/java/com/example/ExampleService.java b/tags/java/sca/1.5.1-RC1/itest/callablereferences-ws/src/main/java/com/example/ExampleService.java deleted file mode 100644 index 670c145cc3..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/callablereferences-ws/src/main/java/com/example/ExampleService.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 com.example; - -import org.osoa.sca.CallableReference; -import org.osoa.sca.ServiceReference; -import org.osoa.sca.annotations.Remotable; - -@Remotable -public interface ExampleService { - - CallableReference hello(String name, ServiceReference ref); - -} diff --git a/tags/java/sca/1.5.1-RC1/itest/callablereferences-ws/src/main/java/com/example/ExampleServiceImpl.java b/tags/java/sca/1.5.1-RC1/itest/callablereferences-ws/src/main/java/com/example/ExampleServiceImpl.java deleted file mode 100644 index eb4d647a22..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/callablereferences-ws/src/main/java/com/example/ExampleServiceImpl.java +++ /dev/null @@ -1,33 +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 com.example; - -import org.osoa.sca.CallableReference; -import org.osoa.sca.ServiceReference; - -public class ExampleServiceImpl implements ExampleService { - - public CallableReference hello(String name, ServiceReference ref) { - if (ref != null) { - ((ServiceReference)ref).getService().sayHello(name); - } - return (CallableReference)ref; - } - -} diff --git a/tags/java/sca/1.5.1-RC1/itest/callablereferences-ws/src/main/java/org/apache/tuscany/sca/itest/callablerefwsreturn/Alpha.java b/tags/java/sca/1.5.1-RC1/itest/callablereferences-ws/src/main/java/org/apache/tuscany/sca/itest/callablerefwsreturn/Alpha.java deleted file mode 100644 index bb5e57397d..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/callablereferences-ws/src/main/java/org/apache/tuscany/sca/itest/callablerefwsreturn/Alpha.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.itest.callablerefwsreturn; - -import org.osoa.sca.annotations.Remotable; - -@Remotable -public interface Alpha { - boolean run(); -} diff --git a/tags/java/sca/1.5.1-RC1/itest/callablereferences-ws/src/main/java/org/apache/tuscany/sca/itest/callablerefwsreturn/AlphaImpl.java b/tags/java/sca/1.5.1-RC1/itest/callablereferences-ws/src/main/java/org/apache/tuscany/sca/itest/callablerefwsreturn/AlphaImpl.java deleted file mode 100644 index 6e5f1cedf9..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/callablereferences-ws/src/main/java/org/apache/tuscany/sca/itest/callablerefwsreturn/AlphaImpl.java +++ /dev/null @@ -1,96 +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.itest.callablerefwsreturn; - -import org.osoa.sca.CallableReference; -import org.osoa.sca.ComponentContext; -import org.osoa.sca.Conversation; -import org.osoa.sca.annotations.Context; -import org.osoa.sca.annotations.Reference; -import org.osoa.sca.annotations.Scope; -import org.osoa.sca.annotations.Service; - -@Service(Alpha.class) -@Scope("COMPOSITE") -public class AlphaImpl implements Alpha { - @Reference - public Beta beta; - - @Context - protected ComponentContext componentContext; - - Object conversationId0 = null; - - public boolean run() { - CallableReference gammaRef = null; - try { - Object conversationId1 = null; - Object conversationId2 = null; - - // it is expected that this call returns a reference to Gamma that - // reuses the established Conversation - gammaRef = beta.getRef(); - - // no Conversation exists - Conversation con = gammaRef.getConversation(); - if (con == null) { - System.out.println("Alpha1: Conversation to gamma is null"); - } else { - System.out - .println("Alpha1: Conversation to gamma exists. conversationId=" - + con.getConversationID()); - conversationId1 = con.getConversationID(); - } - - // this call should reuse a Conversation, but as none exists it - // creates a new conversation - gammaRef.getService().doSomething(); - gammaRef.getService().doSomething(); - gammaRef.getService().doSomething(); - - con = gammaRef.getConversation(); - if (con == null) { - System.out.println("Alpha2: Conversation to gamma is null"); - } else { - System.out - .println("Alpha2: Conversation to gamma exists. conversationId=" - + con.getConversationID()); - conversationId2 = con.getConversationID(); - } - - boolean testPassed = conversationId1.equals(conversationId2); - - if (conversationId0 == null){ - conversationId0 = conversationId1; - return testPassed; - } else { - return testPassed && (!conversationId0.equals(conversationId1)); - } - - } catch (Exception e) { - e.printStackTrace(); - return false; - } finally { - if (gammaRef != null) { - gammaRef.getService().stop(); - } - } - } - -} diff --git a/tags/java/sca/1.5.1-RC1/itest/callablereferences-ws/src/main/java/org/apache/tuscany/sca/itest/callablerefwsreturn/Beta.java b/tags/java/sca/1.5.1-RC1/itest/callablereferences-ws/src/main/java/org/apache/tuscany/sca/itest/callablerefwsreturn/Beta.java deleted file mode 100644 index 995e4fcf39..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/callablereferences-ws/src/main/java/org/apache/tuscany/sca/itest/callablerefwsreturn/Beta.java +++ /dev/null @@ -1,27 +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.itest.callablerefwsreturn; - -import org.osoa.sca.CallableReference; -import org.osoa.sca.annotations.Remotable; - -@Remotable -public interface Beta { - CallableReference getRef(); -} diff --git a/tags/java/sca/1.5.1-RC1/itest/callablereferences-ws/src/main/java/org/apache/tuscany/sca/itest/callablerefwsreturn/BetaImpl.java b/tags/java/sca/1.5.1-RC1/itest/callablereferences-ws/src/main/java/org/apache/tuscany/sca/itest/callablerefwsreturn/BetaImpl.java deleted file mode 100644 index be72fd779e..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/callablereferences-ws/src/main/java/org/apache/tuscany/sca/itest/callablerefwsreturn/BetaImpl.java +++ /dev/null @@ -1,46 +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.itest.callablerefwsreturn; - -import org.osoa.sca.CallableReference; -import org.osoa.sca.ComponentContext; -import org.osoa.sca.ServiceReference; -import org.osoa.sca.annotations.Context; -import org.osoa.sca.annotations.Reference; -import org.osoa.sca.annotations.Scope; -import org.osoa.sca.annotations.Service; - -@Service(Beta.class) -@Scope("COMPOSITE") -public class BetaImpl implements Beta { - @Context - protected ComponentContext componentContext; - - @Reference - public Gamma gamma; - - public CallableReference getRef() { - ServiceReference gammaRef = componentContext - .getServiceReference(Gamma.class, "gamma"); - Gamma g = gammaRef.getService(); - g.start(); - return gammaRef; - } - -} diff --git a/tags/java/sca/1.5.1-RC1/itest/callablereferences-ws/src/main/java/org/apache/tuscany/sca/itest/callablerefwsreturn/Gamma.java b/tags/java/sca/1.5.1-RC1/itest/callablereferences-ws/src/main/java/org/apache/tuscany/sca/itest/callablerefwsreturn/Gamma.java deleted file mode 100644 index b73f26b573..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/callablereferences-ws/src/main/java/org/apache/tuscany/sca/itest/callablerefwsreturn/Gamma.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.itest.callablerefwsreturn; - -import org.osoa.sca.annotations.Conversational; -import org.osoa.sca.annotations.EndsConversation; -import org.osoa.sca.annotations.Remotable; - -@Remotable -@Conversational -public interface Gamma { - int start(); - - void doSomething(); - - @EndsConversation - void stop(); -} diff --git a/tags/java/sca/1.5.1-RC1/itest/callablereferences-ws/src/main/java/org/apache/tuscany/sca/itest/callablerefwsreturn/GammaImpl.java b/tags/java/sca/1.5.1-RC1/itest/callablereferences-ws/src/main/java/org/apache/tuscany/sca/itest/callablerefwsreturn/GammaImpl.java deleted file mode 100644 index c3abc4c65d..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/callablereferences-ws/src/main/java/org/apache/tuscany/sca/itest/callablerefwsreturn/GammaImpl.java +++ /dev/null @@ -1,49 +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.itest.callablerefwsreturn; - -import org.osoa.sca.annotations.ConversationID; -import org.osoa.sca.annotations.Scope; -import org.osoa.sca.annotations.Service; - -@Service(Gamma.class) -@Scope("CONVERSATION") -public class GammaImpl implements Gamma { - @ConversationID - protected String conversationId; - - public GammaImpl() { - System.out.println("GammaImpl:GammaImpl(), conversationId=" - + conversationId); - } - - public int start() { - System.out.println("Gamma:start(), conversationId=" + conversationId); - return 1; - } - - public void doSomething() { - System.out.println("Gamma:doSomething(), conversationId=" - + conversationId); - } - - public void stop() { - System.out.println("Gamma:stop(), conversationId=" + conversationId); - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/callablereferences-ws/src/main/resources/CallableReferenceWsReturnTest.composite b/tags/java/sca/1.5.1-RC1/itest/callablereferences-ws/src/main/resources/CallableReferenceWsReturnTest.composite deleted file mode 100644 index 3d782a0b84..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/callablereferences-ws/src/main/resources/CallableReferenceWsReturnTest.composite +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/callablereferences-ws/src/main/resources/example.composite b/tags/java/sca/1.5.1-RC1/itest/callablereferences-ws/src/main/resources/example.composite deleted file mode 100644 index ea0819a32e..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/callablereferences-ws/src/main/resources/example.composite +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/callablereferences-ws/src/test/java/com/example/ExampleTestCase.java b/tags/java/sca/1.5.1-RC1/itest/callablereferences-ws/src/test/java/com/example/ExampleTestCase.java deleted file mode 100644 index 310e31fb02..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/callablereferences-ws/src/test/java/com/example/ExampleTestCase.java +++ /dev/null @@ -1,44 +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 com.example; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.host.embedded.SCADomain; - -public class ExampleTestCase extends TestCase { - - private SCADomain scaDomain; - private ExampleClient client; - - @Override - protected void setUp() throws Exception { - scaDomain = SCADomain.newInstance("example.composite"); - client = scaDomain.getService(ExampleClient.class, "ExampleClientComponent"); - } - - @Override - protected void tearDown() throws Exception { - scaDomain.close(); - } - - public void test() throws Exception { - client.runTest(); - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/callablereferences-ws/src/test/java/org/apache/tuscany/sca/itest/callablerefws/CallableReferenceReturnTestCase.java b/tags/java/sca/1.5.1-RC1/itest/callablereferences-ws/src/test/java/org/apache/tuscany/sca/itest/callablerefws/CallableReferenceReturnTestCase.java deleted file mode 100644 index 66fb2ef96c..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/callablereferences-ws/src/test/java/org/apache/tuscany/sca/itest/callablerefws/CallableReferenceReturnTestCase.java +++ /dev/null @@ -1,49 +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.itest.callablerefws; - -import org.apache.tuscany.sca.host.embedded.SCADomain; -import org.apache.tuscany.sca.itest.callablerefwsreturn.Alpha; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.BeforeClass; -import org.junit.Test; - -public class CallableReferenceReturnTestCase { - private static SCADomain domain; - private static Alpha alpha; - - @BeforeClass - public static void init() throws Exception { - domain = SCADomain.newInstance("CallableReferenceWsReturnTest.composite"); - alpha = domain.getService(Alpha.class, "Alpha"); - } - - @AfterClass - public static void destroy() throws Exception { - domain.close(); - } - - @Test - public void testCallableReferenceReturn() { - Assert.assertTrue(alpha.run()); - Assert.assertTrue(alpha.run()); - } - -} -- cgit v1.2.3