From bdd0a41aed7edf21ec2a65cfa17a86af2ef8c48a Mon Sep 17 00:00:00 2001 From: dims Date: Tue, 17 Jun 2008 00:23:01 +0000 Subject: Move Tuscany from Incubator to top level. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@668359 13f79535-47bb-0310-9956-ffa450edef68 --- .../sca-java-1.2.1/itest/bpel/ping-pong/pom.xml | 195 +++++++++++++++++++++ .../test/java/pingpong/BPELPingPongTestCase.java | 60 +++++++ .../test/java/pingpong/BPELPingTestCase.java | 63 +++++++ .../test/java/pingpong/BPELPongTestCase.java | 62 +++++++ .../bpel/ping-pong/test/resources/log4j.properties | 33 ++++ .../resources/ping-pong/ping-pong.componentType | 36 ++++ .../test/resources/ping-pong/ping-pong.composite | 36 ++++ .../bpel/ping-pong/test/resources/ping/deploy.xml | 35 ++++ .../bpel/ping-pong/test/resources/ping/ping.bpel | 124 +++++++++++++ .../test/resources/ping/ping.componentType | 36 ++++ .../ping-pong/test/resources/ping/ping.composite | 29 +++ .../bpel/ping-pong/test/resources/ping/ping.wsdl | 84 +++++++++ .../bpel/ping-pong/test/resources/ping/pong.wsdl | 84 +++++++++ .../bpel/ping-pong/test/resources/pong/deploy.xml | 31 ++++ .../bpel/ping-pong/test/resources/pong/pong.bpel | 84 +++++++++ .../test/resources/pong/pong.componentType | 29 +++ .../ping-pong/test/resources/pong/pong.composite | 30 ++++ .../bpel/ping-pong/test/resources/pong/pong.wsdl | 93 ++++++++++ 18 files changed, 1144 insertions(+) create mode 100644 branches/sca-java-1.2.1/itest/bpel/ping-pong/pom.xml create mode 100644 branches/sca-java-1.2.1/itest/bpel/ping-pong/test/java/pingpong/BPELPingPongTestCase.java create mode 100644 branches/sca-java-1.2.1/itest/bpel/ping-pong/test/java/pingpong/BPELPingTestCase.java create mode 100644 branches/sca-java-1.2.1/itest/bpel/ping-pong/test/java/pingpong/BPELPongTestCase.java create mode 100644 branches/sca-java-1.2.1/itest/bpel/ping-pong/test/resources/log4j.properties create mode 100644 branches/sca-java-1.2.1/itest/bpel/ping-pong/test/resources/ping-pong/ping-pong.componentType create mode 100644 branches/sca-java-1.2.1/itest/bpel/ping-pong/test/resources/ping-pong/ping-pong.composite create mode 100644 branches/sca-java-1.2.1/itest/bpel/ping-pong/test/resources/ping/deploy.xml create mode 100644 branches/sca-java-1.2.1/itest/bpel/ping-pong/test/resources/ping/ping.bpel create mode 100644 branches/sca-java-1.2.1/itest/bpel/ping-pong/test/resources/ping/ping.componentType create mode 100644 branches/sca-java-1.2.1/itest/bpel/ping-pong/test/resources/ping/ping.composite create mode 100644 branches/sca-java-1.2.1/itest/bpel/ping-pong/test/resources/ping/ping.wsdl create mode 100644 branches/sca-java-1.2.1/itest/bpel/ping-pong/test/resources/ping/pong.wsdl create mode 100644 branches/sca-java-1.2.1/itest/bpel/ping-pong/test/resources/pong/deploy.xml create mode 100644 branches/sca-java-1.2.1/itest/bpel/ping-pong/test/resources/pong/pong.bpel create mode 100644 branches/sca-java-1.2.1/itest/bpel/ping-pong/test/resources/pong/pong.componentType create mode 100644 branches/sca-java-1.2.1/itest/bpel/ping-pong/test/resources/pong/pong.composite create mode 100644 branches/sca-java-1.2.1/itest/bpel/ping-pong/test/resources/pong/pong.wsdl (limited to 'branches/sca-java-1.2.1/itest/bpel/ping-pong') diff --git a/branches/sca-java-1.2.1/itest/bpel/ping-pong/pom.xml b/branches/sca-java-1.2.1/itest/bpel/ping-pong/pom.xml new file mode 100644 index 0000000000..94322a3638 --- /dev/null +++ b/branches/sca-java-1.2.1/itest/bpel/ping-pong/pom.xml @@ -0,0 +1,195 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + itest-bpel + 1.2.1-incubating-SNAPSHOT + ../../pom.xml + + itest-bpel-ping-pong + Apache Tuscany SCA HelloWorld Reference BPEL iTest + + + + apache.incubator + http://people.apache.org/repo/m2-incubating-repository + + + + + + org.apache.tuscany.sca + tuscany-host-embedded + 1.2.1-incubating-SNAPSHOT + + + + org.apache.tuscany.sca + tuscany-implementation-java-runtime + 1.2.1-incubating-SNAPSHOT + runtime + + + + org.apache.tuscany.sca + tuscany-binding-ws-axis2 + 1.2.1-incubating-SNAPSHOT + runtime + + + + org.apache.tuscany.sca + tuscany-host-tomcat + 1.2.1-incubating-SNAPSHOT + runtime + + + + org.apache.tuscany.sca + tuscany-implementation-bpel + 1.2.1-incubating-SNAPSHOT + runtime + + + + org.apache.tuscany.sdo + tuscany-sdo-impl + 1.0-incubating-SNAPSHOT + + + + xerces + xercesImpl + 2.8.0 + + + + junit + junit + 4.2 + test + + + + + ${artifactId} + + + org.apache.maven.plugins + maven-surefire-plugin + + 2.3.1 + + false + false + true + + + + org.apache.maven.plugins + maven-dependency-plugin + + + unpack + test-compile + + unpack + + + + + org.apache.ode + ode-dao-jpa-ojpa-derby + 1.1 + zip + true + ${project.build.directory}/test-classes/ + + + + + + + + org.apache.tuscany.sdo + tuscany-sdo-plugin + 1.0-incubating-SNAPSHOT + + + generate-bpel-ping + generate-sources + + ${basedir}/src/test/resources/ping/ping.wsdl + ${basedir}/target/wsdl2java-source + Ping + true + true + true + + + generate + + + + + generate-bpel-pong + generate-sources + + ${basedir}/src/test/resources/pong/pong.wsdl + ${basedir}/target/wsdl2java-source + Pong + true + true + true + + + generate + + + + + + + org.apache.tuscany.sca + tuscany-maven-wsdl2java + 1.2.1-incubating-SNAPSHOT + + + + + + ${basedir}/src/test/resources/ping/ping.wsdl + + + ${basedir}/src/test/resources/pong/pong.wsdl + + + + + generate + + + + + + + diff --git a/branches/sca-java-1.2.1/itest/bpel/ping-pong/test/java/pingpong/BPELPingPongTestCase.java b/branches/sca-java-1.2.1/itest/bpel/ping-pong/test/java/pingpong/BPELPingPongTestCase.java new file mode 100644 index 0000000000..1ab2ba3d5d --- /dev/null +++ b/branches/sca-java-1.2.1/itest/bpel/ping-pong/test/java/pingpong/BPELPingPongTestCase.java @@ -0,0 +1,60 @@ +/* + * 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.implementation.bpel; + +import junit.framework.TestCase; + +import org.apache.tuscany.implementation.bpel.example.ping.PingPortType; +import org.apache.tuscany.sca.host.embedded.SCADomain; + +/** + * Tests the BPEL service + * + * @version $Rev$ $Date$ + */ +public class BPELPingPongTestCase extends TestCase { + + private SCADomain scaDomain; + PingPortType bpelPing = null; + + /** + * @throws java.lang.Exception + */ + @Override + protected void setUp() throws Exception { + //scaDomain = SCADomain.newInstance("ping-pong/ping-pong.composite"); + //bpelPing = scaDomain.getService(PingPortType.class, "BPELPingPong-PingComponent/PingService"); + } + + /** + * @throws java.lang.Exception + */ + @Override + protected void tearDown() throws Exception { + //scaDomain.close(); + } + + public void testPing() { + //String response = bpelPing.Ping("Ping"); + //System.out.println("response:" + response); + //assertNotNull(response); + // assertEquals("Hello World", response); + } +} diff --git a/branches/sca-java-1.2.1/itest/bpel/ping-pong/test/java/pingpong/BPELPingTestCase.java b/branches/sca-java-1.2.1/itest/bpel/ping-pong/test/java/pingpong/BPELPingTestCase.java new file mode 100644 index 0000000000..34f82318a3 --- /dev/null +++ b/branches/sca-java-1.2.1/itest/bpel/ping-pong/test/java/pingpong/BPELPingTestCase.java @@ -0,0 +1,63 @@ +/* + * 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.implementation.bpel; + +import junit.framework.TestCase; + +import org.apache.tuscany.implementation.bpel.example.ping.PingPortType; +import org.apache.tuscany.sca.host.embedded.SCADomain; + +/** + * Tests the BPEL service + * + * @version $Rev$ $Date$ + */ +public class BPELPingTestCase extends TestCase { + + private SCADomain scaDomain; + PingPortType bpelService = null; + + /** + * @throws java.lang.Exception + */ + @Override + protected void setUp() throws Exception { + //scaDomain = SCADomain.newInstance("ping/ping.composite"); + //bpelService = scaDomain.getService(PingPortType.class, "BPELPingComponent"); + + } + + /** + * @throws java.lang.Exception + */ + @Override + protected void tearDown() throws Exception { + //scaDomain.close(); + } + + public void testInvoke() { + /* + String response = bpelService.Ping("Ping"); + System.out.println("response:" + response); + assertNotNull(response); + */ + // assertEquals("Hello World", response); + } +} diff --git a/branches/sca-java-1.2.1/itest/bpel/ping-pong/test/java/pingpong/BPELPongTestCase.java b/branches/sca-java-1.2.1/itest/bpel/ping-pong/test/java/pingpong/BPELPongTestCase.java new file mode 100644 index 0000000000..313bd66850 --- /dev/null +++ b/branches/sca-java-1.2.1/itest/bpel/ping-pong/test/java/pingpong/BPELPongTestCase.java @@ -0,0 +1,62 @@ +/* + * 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.implementation.bpel; + +import junit.framework.TestCase; + +import org.apache.tuscany.implementation.bpel.example.pong.PongPortType; +import org.apache.tuscany.sca.host.embedded.SCADomain; + +/** + * Tests the BPEL service + * + * @version $Rev$ $Date$ + */ +public class BPELPongTestCase extends TestCase { + + private SCADomain scaDomain; + PongPortType bpelService = null; + + /** + * @throws java.lang.Exception + */ + @Override + protected void setUp() throws Exception { + scaDomain = SCADomain.newInstance("pong/pong.composite"); + bpelService = scaDomain.getService(PongPortType.class, "BPELPongComponent"); + + } + + /** + * @throws java.lang.Exception + */ + @Override + protected void tearDown() throws Exception { + scaDomain.close(); + } + + public void testInvoke() { + String response = bpelService.Pong("Pong"); + System.out.println("response:" + response); + assertNotNull(response); + + // assertEquals("Hello World", response); + } +} diff --git a/branches/sca-java-1.2.1/itest/bpel/ping-pong/test/resources/log4j.properties b/branches/sca-java-1.2.1/itest/bpel/ping-pong/test/resources/log4j.properties new file mode 100644 index 0000000000..d0b3c3aa5a --- /dev/null +++ b/branches/sca-java-1.2.1/itest/bpel/ping-pong/test/resources/log4j.properties @@ -0,0 +1,33 @@ +# +# 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. +# + +# Set root logger level to WARN and its only appender to CONSOLE +log4j.rootLogger=OFF, CONSOLE + +# log4j properties to work with commandline tools. +log4j.category.org.mortbay=OFF +log4j.category.org.hibernate.type=OFF +log4j.category.org.objectweb=OFF +log4j.category.org.apache.ode.axis2=OFF +log4j.category.org.apache.ode.bpel.engine=OFF +log4j.category.org.apache.ode.daohib.bpel.CorrelatorDaoImpl=OFF +log4j.category.org.apache.ode.bpel.epr=OFF + +# Console appender +log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender +log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout +log4j.appender.CONSOLE.layout.ConversionPattern=%p - %C{1}.%M(%L) | %m%n diff --git a/branches/sca-java-1.2.1/itest/bpel/ping-pong/test/resources/ping-pong/ping-pong.componentType b/branches/sca-java-1.2.1/itest/bpel/ping-pong/test/resources/ping-pong/ping-pong.componentType new file mode 100644 index 0000000000..e4cbdfe89c --- /dev/null +++ b/branches/sca-java-1.2.1/itest/bpel/ping-pong/test/resources/ping-pong/ping-pong.componentType @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/branches/sca-java-1.2.1/itest/bpel/ping-pong/test/resources/ping-pong/ping-pong.composite b/branches/sca-java-1.2.1/itest/bpel/ping-pong/test/resources/ping-pong/ping-pong.composite new file mode 100644 index 0000000000..a0eb4d0b5b --- /dev/null +++ b/branches/sca-java-1.2.1/itest/bpel/ping-pong/test/resources/ping-pong/ping-pong.composite @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/branches/sca-java-1.2.1/itest/bpel/ping-pong/test/resources/ping/deploy.xml b/branches/sca-java-1.2.1/itest/bpel/ping-pong/test/resources/ping/deploy.xml new file mode 100644 index 0000000000..613ed9c491 --- /dev/null +++ b/branches/sca-java-1.2.1/itest/bpel/ping-pong/test/resources/ping/deploy.xml @@ -0,0 +1,35 @@ + + + + + + true + + + + + + + + + diff --git a/branches/sca-java-1.2.1/itest/bpel/ping-pong/test/resources/ping/ping.bpel b/branches/sca-java-1.2.1/itest/bpel/ping-pong/test/resources/ping/ping.bpel new file mode 100644 index 0000000000..abda9e58d2 --- /dev/null +++ b/branches/sca-java-1.2.1/itest/bpel/ping-pong/test/resources/ping/ping.bpel @@ -0,0 +1,124 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + concat($pingRequest.body/ping:text, ' ping') + + + + + + + + + + + + $pongRequest.body + + + + $text + $pongRequest.body/pong:text + + + + + + + + $pongResponse.body/pong:text + $text + + + + + + + + + + + $pingResponse.body + + + + $text + $pingResponse.body/ping:text + + + + + + diff --git a/branches/sca-java-1.2.1/itest/bpel/ping-pong/test/resources/ping/ping.componentType b/branches/sca-java-1.2.1/itest/bpel/ping-pong/test/resources/ping/ping.componentType new file mode 100644 index 0000000000..7598a99d16 --- /dev/null +++ b/branches/sca-java-1.2.1/itest/bpel/ping-pong/test/resources/ping/ping.componentType @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/branches/sca-java-1.2.1/itest/bpel/ping-pong/test/resources/ping/ping.composite b/branches/sca-java-1.2.1/itest/bpel/ping-pong/test/resources/ping/ping.composite new file mode 100644 index 0000000000..75eed03022 --- /dev/null +++ b/branches/sca-java-1.2.1/itest/bpel/ping-pong/test/resources/ping/ping.composite @@ -0,0 +1,29 @@ + + + + + + + + + \ No newline at end of file diff --git a/branches/sca-java-1.2.1/itest/bpel/ping-pong/test/resources/ping/ping.wsdl b/branches/sca-java-1.2.1/itest/bpel/ping-pong/test/resources/ping/ping.wsdl new file mode 100644 index 0000000000..03e54c4de8 --- /dev/null +++ b/branches/sca-java-1.2.1/itest/bpel/ping-pong/test/resources/ping/ping.wsdl @@ -0,0 +1,84 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/branches/sca-java-1.2.1/itest/bpel/ping-pong/test/resources/ping/pong.wsdl b/branches/sca-java-1.2.1/itest/bpel/ping-pong/test/resources/ping/pong.wsdl new file mode 100644 index 0000000000..1f4c4a9aaa --- /dev/null +++ b/branches/sca-java-1.2.1/itest/bpel/ping-pong/test/resources/ping/pong.wsdl @@ -0,0 +1,84 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/branches/sca-java-1.2.1/itest/bpel/ping-pong/test/resources/pong/deploy.xml b/branches/sca-java-1.2.1/itest/bpel/ping-pong/test/resources/pong/deploy.xml new file mode 100644 index 0000000000..1315ef47f0 --- /dev/null +++ b/branches/sca-java-1.2.1/itest/bpel/ping-pong/test/resources/pong/deploy.xml @@ -0,0 +1,31 @@ + + + + + + true + + + + + + diff --git a/branches/sca-java-1.2.1/itest/bpel/ping-pong/test/resources/pong/pong.bpel b/branches/sca-java-1.2.1/itest/bpel/ping-pong/test/resources/pong/pong.bpel new file mode 100644 index 0000000000..b5d84898c7 --- /dev/null +++ b/branches/sca-java-1.2.1/itest/bpel/ping-pong/test/resources/pong/pong.bpel @@ -0,0 +1,84 @@ + + + + + + + + + + + + + + + + + + + + + + + + concat($pongRequest.body/pong:text, ' pong') + $text + + + + + + + + + + + $pongResponse.body + + + + $text + $pongResponse.body/pong:text + + + + + + diff --git a/branches/sca-java-1.2.1/itest/bpel/ping-pong/test/resources/pong/pong.componentType b/branches/sca-java-1.2.1/itest/bpel/ping-pong/test/resources/pong/pong.componentType new file mode 100644 index 0000000000..2f8fd5d3de --- /dev/null +++ b/branches/sca-java-1.2.1/itest/bpel/ping-pong/test/resources/pong/pong.componentType @@ -0,0 +1,29 @@ + + + + + + + + + \ No newline at end of file diff --git a/branches/sca-java-1.2.1/itest/bpel/ping-pong/test/resources/pong/pong.composite b/branches/sca-java-1.2.1/itest/bpel/ping-pong/test/resources/pong/pong.composite new file mode 100644 index 0000000000..e40ce7ee45 --- /dev/null +++ b/branches/sca-java-1.2.1/itest/bpel/ping-pong/test/resources/pong/pong.composite @@ -0,0 +1,30 @@ + + + + + + + + + + \ No newline at end of file diff --git a/branches/sca-java-1.2.1/itest/bpel/ping-pong/test/resources/pong/pong.wsdl b/branches/sca-java-1.2.1/itest/bpel/ping-pong/test/resources/pong/pong.wsdl new file mode 100644 index 0000000000..21ee8b82f6 --- /dev/null +++ b/branches/sca-java-1.2.1/itest/bpel/ping-pong/test/resources/pong/pong.wsdl @@ -0,0 +1,93 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- cgit v1.2.3