From 5559ef5edbf8d3616f7a4b497b2a459b0ee4082b Mon Sep 17 00:00:00 2001 From: lresende Date: Wed, 11 Nov 2009 23:07:07 +0000 Subject: Moving 1.x branches git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@835122 13f79535-47bb-0310-9956-ffa450edef68 --- .../sca-java-1.0/itest/interop-soap-client/pom.xml | 126 ------------- .../LoopbackInteropDocServiceComponentImpl.java | 46 ----- .../src/main/resources/default.composite | 35 ---- .../src/main/resources/wsdl/interopdoc.wsdl | 195 --------------------- .../interop/client/InteropDocClientTestCase.java | 144 --------------- 5 files changed, 546 deletions(-) delete mode 100644 branches/sca-java-1.0/itest/interop-soap-client/pom.xml delete mode 100644 branches/sca-java-1.0/itest/interop-soap-client/src/main/java/org/apache/tuscany/test/interop/client/LoopbackInteropDocServiceComponentImpl.java delete mode 100644 branches/sca-java-1.0/itest/interop-soap-client/src/main/resources/default.composite delete mode 100644 branches/sca-java-1.0/itest/interop-soap-client/src/main/resources/wsdl/interopdoc.wsdl delete mode 100644 branches/sca-java-1.0/itest/interop-soap-client/src/test/java/org/apache/tuscany/test/interop/client/InteropDocClientTestCase.java (limited to 'branches/sca-java-1.0/itest/interop-soap-client') diff --git a/branches/sca-java-1.0/itest/interop-soap-client/pom.xml b/branches/sca-java-1.0/itest/interop-soap-client/pom.xml deleted file mode 100644 index 1ecd92f5e9..0000000000 --- a/branches/sca-java-1.0/itest/interop-soap-client/pom.xml +++ /dev/null @@ -1,126 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 1.0-incubating-SNAPSHOT - ../pom.xml - - itest-interop-soap-client - jar - Apache Tuscany SCA WS Interop Client Integration Tests - - - - org.apache.tuscany.sca - tuscany-sca-api - 1.0-incubating-SNAPSHOT - - - org.apache.tuscany.sca - tuscany-host-embedded - 1.0-incubating-SNAPSHOT - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 1.0-incubating-SNAPSHOT - runtime - - - org.apache.tuscany.sca - tuscany-interface-wsdl - 1.0-incubating-SNAPSHOT - runtime - - - org.apache.tuscany.sca - tuscany-binding-ws-axis2 - 1.0-incubating-SNAPSHOT - runtime - - - org.apache.tuscany.sca - tuscany-databinding-sdo - 1.0-incubating-SNAPSHOT - runtime - - - org.apache.tuscany.sca - tuscany-databinding-axiom - 1.0-incubating-SNAPSHOT - runtime - - - org.apache.tuscany.sca - tuscany-host-jetty - 1.0-incubating-SNAPSHOT - runtime - - - org.apache.tuscany.sdo - tuscany-sdo-impl - 1.0-incubating - compile - - - - - - org.apache.tuscany.sdo - tuscany-sdo-plugin - 1.0-incubating - - - - ${basedir}/src/main/resources/wsdl/interopdoc.wsdl - true - true - true - true - - - generate - - - - - - org.apache.tuscany.sca - tuscany-maven-wsdl2java - 1.0-incubating-SNAPSHOT - - - - - ${basedir}/src/main/resources/wsdl/interopdoc.wsdl - org.soapinterop - - - generate - - - - - - - diff --git a/branches/sca-java-1.0/itest/interop-soap-client/src/main/java/org/apache/tuscany/test/interop/client/LoopbackInteropDocServiceComponentImpl.java b/branches/sca-java-1.0/itest/interop-soap-client/src/main/java/org/apache/tuscany/test/interop/client/LoopbackInteropDocServiceComponentImpl.java deleted file mode 100644 index ffffb96686..0000000000 --- a/branches/sca-java-1.0/itest/interop-soap-client/src/main/java/org/apache/tuscany/test/interop/client/LoopbackInteropDocServiceComponentImpl.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.test.interop.client; - -import java.rmi.RemoteException; - -import org.osoa.sca.annotations.Service; -import org.soapinterop.ComplexDocument; -import org.soapinterop.DocTestPortType; -import org.soapinterop.SimpleDocument1; -import org.soapinterop.SingleTag; - -/** - * This class implements the DocTest service component. - */ -@Service(DocTestPortType.class) -public class LoopbackInteropDocServiceComponentImpl implements DocTestPortType { - - public ComplexDocument ComplexDocument(ComplexDocument param0){ - return param0; - } - - public SimpleDocument1 SimpleDocument(SimpleDocument1 param4) { - return param4; - } - - public SingleTag SingleTag(SingleTag param2) { - return param2; - } -} diff --git a/branches/sca-java-1.0/itest/interop-soap-client/src/main/resources/default.composite b/branches/sca-java-1.0/itest/interop-soap-client/src/main/resources/default.composite deleted file mode 100644 index 7fd5cc0d65..0000000000 --- a/branches/sca-java-1.0/itest/interop-soap-client/src/main/resources/default.composite +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/branches/sca-java-1.0/itest/interop-soap-client/src/main/resources/wsdl/interopdoc.wsdl b/branches/sca-java-1.0/itest/interop-soap-client/src/main/resources/wsdl/interopdoc.wsdl deleted file mode 100644 index 90d8a754b4..0000000000 --- a/branches/sca-java-1.0/itest/interop-soap-client/src/main/resources/wsdl/interopdoc.wsdl +++ /dev/null @@ -1,195 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/branches/sca-java-1.0/itest/interop-soap-client/src/test/java/org/apache/tuscany/test/interop/client/InteropDocClientTestCase.java b/branches/sca-java-1.0/itest/interop-soap-client/src/test/java/org/apache/tuscany/test/interop/client/InteropDocClientTestCase.java deleted file mode 100644 index dc1ba48580..0000000000 --- a/branches/sca-java-1.0/itest/interop-soap-client/src/test/java/org/apache/tuscany/test/interop/client/InteropDocClientTestCase.java +++ /dev/null @@ -1,144 +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.test.interop.client; - -import java.rmi.RemoteException; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.host.embedded.SCADomain; -import org.soapinterop.ArrayOfSimpleDocument; -import org.soapinterop.ChildDocument; -import org.soapinterop.ComplexDocument; -import org.soapinterop.DocTestPortType; -import org.soapinterop.SimpleDocument; -import org.soapinterop.SimpleDocument1; -import org.soapinterop.SingleTag; - -import commonj.sdo.helper.DataFactory; - -public class InteropDocClientTestCase extends TestCase { - private SCADomain scaDomain; - - private DataFactory dataFactory; - - private DocTestPortType interopDoc; - - public InteropDocClientTestCase(){}; - - - @Override - protected void setUp() throws Exception { - - scaDomain = SCADomain.newInstance("default.composite"); - interopDoc = locateInteropDocService(); - - //Get the SDO DataFactory - dataFactory = DataFactory.INSTANCE; - } - - - public void testSingleTag() throws RemoteException { - - assertNotNull(interopDoc); - - // Create the input - SingleTag input = (SingleTag) dataFactory.create(SingleTag.class); - - // Invoke the service - SingleTag output = interopDoc.SingleTag(input); - - // Test the results - assertNotNull(output); - - } - - public void testSimpleDocument() throws RemoteException { - - assertNotNull(interopDoc); - - // Create the input - SimpleDocument1 input = (SimpleDocument1) dataFactory.create(SimpleDocument1.class); - input.setValue("123"); - - // Invoke the service - SimpleDocument1 output = interopDoc.SimpleDocument(input); - - // Test the results - assertNotNull(output); - assertEquals("123", output.getValue()); - - } - - public void testComplexDocument() throws RemoteException { - - assertNotNull(interopDoc); - - // Create the input - ComplexDocument input = (ComplexDocument) dataFactory.create(ComplexDocument.class); - input.setAnAttribute("789"); - ChildDocument childDocument = (ChildDocument) dataFactory.create(ChildDocument.class); - SimpleDocument simpleDocument = (SimpleDocument) dataFactory.create(SimpleDocument.class); - - SimpleDocument1 simpleDocument1 = (SimpleDocument1) dataFactory.create(SimpleDocument1.class); - - simpleDocument.setSimpleDocument(simpleDocument1); - simpleDocument1.setValue("456"); - ArrayOfSimpleDocument arrayOfSimpleDocument = (ArrayOfSimpleDocument) dataFactory.create(ArrayOfSimpleDocument.class); - - arrayOfSimpleDocument.getSimpleDocument().add(simpleDocument1); - childDocument.setChildSimpleDoc(arrayOfSimpleDocument); - input.setChild(childDocument); - - // Invoke the service - ComplexDocument output = interopDoc.ComplexDocument(input); - - // Test the results - assertNotNull(output); - assertEquals("789", output.getAnAttribute()); - assertNotNull(output.getChild()); - assertNotNull(output.getChild().getChildSimpleDoc()); - - // FIXME Add more tests of the output document - - } - - - /** - * Locate the interop service to test - * - * @return - */ - protected DocTestPortType locateInteropDocService() { - String interopLocation = System.getProperty("interopLocation"); - - // Valid service names are: - // RemoteInteropDocService: the live interop Web Service - // LocalHostInteropDocService: the interop Web Service hosted by Tuscany on localhost - // LoopbackInteropDocServiceComponent: a dummy loopback service component - - // To specify the service name run mvn -interopLocation="Remote" - - if (interopLocation == null) - interopLocation = "Remote"; - - return scaDomain.getService(DocTestPortType.class, interopLocation + "InteropDocService"); - } - -} -- cgit v1.2.3