From e0ff67c0b32813ea48734c770a5ffc1952644e29 Mon Sep 17 00:00:00 2001 From: lresende Date: Wed, 11 Nov 2009 23:08:02 +0000 Subject: Moving 1.x branches git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@835128 13f79535-47bb-0310-9956-ffa450edef68 --- .../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 ++++++++++++++++ 17 files changed, 949 insertions(+) create mode 100644 sca-java-1.x/branches/sca-java-1.3.1/itest/bpel/ping-pong/test/java/pingpong/BPELPingPongTestCase.java create mode 100644 sca-java-1.x/branches/sca-java-1.3.1/itest/bpel/ping-pong/test/java/pingpong/BPELPingTestCase.java create mode 100644 sca-java-1.x/branches/sca-java-1.3.1/itest/bpel/ping-pong/test/java/pingpong/BPELPongTestCase.java create mode 100644 sca-java-1.x/branches/sca-java-1.3.1/itest/bpel/ping-pong/test/resources/log4j.properties create mode 100644 sca-java-1.x/branches/sca-java-1.3.1/itest/bpel/ping-pong/test/resources/ping-pong/ping-pong.componentType create mode 100644 sca-java-1.x/branches/sca-java-1.3.1/itest/bpel/ping-pong/test/resources/ping-pong/ping-pong.composite create mode 100644 sca-java-1.x/branches/sca-java-1.3.1/itest/bpel/ping-pong/test/resources/ping/deploy.xml create mode 100644 sca-java-1.x/branches/sca-java-1.3.1/itest/bpel/ping-pong/test/resources/ping/ping.bpel create mode 100644 sca-java-1.x/branches/sca-java-1.3.1/itest/bpel/ping-pong/test/resources/ping/ping.componentType create mode 100644 sca-java-1.x/branches/sca-java-1.3.1/itest/bpel/ping-pong/test/resources/ping/ping.composite create mode 100644 sca-java-1.x/branches/sca-java-1.3.1/itest/bpel/ping-pong/test/resources/ping/ping.wsdl create mode 100644 sca-java-1.x/branches/sca-java-1.3.1/itest/bpel/ping-pong/test/resources/ping/pong.wsdl create mode 100644 sca-java-1.x/branches/sca-java-1.3.1/itest/bpel/ping-pong/test/resources/pong/deploy.xml create mode 100644 sca-java-1.x/branches/sca-java-1.3.1/itest/bpel/ping-pong/test/resources/pong/pong.bpel create mode 100644 sca-java-1.x/branches/sca-java-1.3.1/itest/bpel/ping-pong/test/resources/pong/pong.componentType create mode 100644 sca-java-1.x/branches/sca-java-1.3.1/itest/bpel/ping-pong/test/resources/pong/pong.composite create mode 100644 sca-java-1.x/branches/sca-java-1.3.1/itest/bpel/ping-pong/test/resources/pong/pong.wsdl (limited to 'sca-java-1.x/branches/sca-java-1.3.1/itest/bpel/ping-pong/test') diff --git a/sca-java-1.x/branches/sca-java-1.3.1/itest/bpel/ping-pong/test/java/pingpong/BPELPingPongTestCase.java b/sca-java-1.x/branches/sca-java-1.3.1/itest/bpel/ping-pong/test/java/pingpong/BPELPingPongTestCase.java new file mode 100644 index 0000000000..1ab2ba3d5d --- /dev/null +++ b/sca-java-1.x/branches/sca-java-1.3.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/sca-java-1.x/branches/sca-java-1.3.1/itest/bpel/ping-pong/test/java/pingpong/BPELPingTestCase.java b/sca-java-1.x/branches/sca-java-1.3.1/itest/bpel/ping-pong/test/java/pingpong/BPELPingTestCase.java new file mode 100644 index 0000000000..34f82318a3 --- /dev/null +++ b/sca-java-1.x/branches/sca-java-1.3.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/sca-java-1.x/branches/sca-java-1.3.1/itest/bpel/ping-pong/test/java/pingpong/BPELPongTestCase.java b/sca-java-1.x/branches/sca-java-1.3.1/itest/bpel/ping-pong/test/java/pingpong/BPELPongTestCase.java new file mode 100644 index 0000000000..313bd66850 --- /dev/null +++ b/sca-java-1.x/branches/sca-java-1.3.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/sca-java-1.x/branches/sca-java-1.3.1/itest/bpel/ping-pong/test/resources/log4j.properties b/sca-java-1.x/branches/sca-java-1.3.1/itest/bpel/ping-pong/test/resources/log4j.properties new file mode 100644 index 0000000000..01bf8d8bf5 --- /dev/null +++ b/sca-java-1.x/branches/sca-java-1.3.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/sca-java-1.x/branches/sca-java-1.3.1/itest/bpel/ping-pong/test/resources/ping-pong/ping-pong.componentType b/sca-java-1.x/branches/sca-java-1.3.1/itest/bpel/ping-pong/test/resources/ping-pong/ping-pong.componentType new file mode 100644 index 0000000000..e4cbdfe89c --- /dev/null +++ b/sca-java-1.x/branches/sca-java-1.3.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/sca-java-1.x/branches/sca-java-1.3.1/itest/bpel/ping-pong/test/resources/ping-pong/ping-pong.composite b/sca-java-1.x/branches/sca-java-1.3.1/itest/bpel/ping-pong/test/resources/ping-pong/ping-pong.composite new file mode 100644 index 0000000000..a0eb4d0b5b --- /dev/null +++ b/sca-java-1.x/branches/sca-java-1.3.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/sca-java-1.x/branches/sca-java-1.3.1/itest/bpel/ping-pong/test/resources/ping/deploy.xml b/sca-java-1.x/branches/sca-java-1.3.1/itest/bpel/ping-pong/test/resources/ping/deploy.xml new file mode 100644 index 0000000000..613ed9c491 --- /dev/null +++ b/sca-java-1.x/branches/sca-java-1.3.1/itest/bpel/ping-pong/test/resources/ping/deploy.xml @@ -0,0 +1,35 @@ + + + + + + true + + + + + + + + + diff --git a/sca-java-1.x/branches/sca-java-1.3.1/itest/bpel/ping-pong/test/resources/ping/ping.bpel b/sca-java-1.x/branches/sca-java-1.3.1/itest/bpel/ping-pong/test/resources/ping/ping.bpel new file mode 100644 index 0000000000..abda9e58d2 --- /dev/null +++ b/sca-java-1.x/branches/sca-java-1.3.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/sca-java-1.x/branches/sca-java-1.3.1/itest/bpel/ping-pong/test/resources/ping/ping.componentType b/sca-java-1.x/branches/sca-java-1.3.1/itest/bpel/ping-pong/test/resources/ping/ping.componentType new file mode 100644 index 0000000000..7598a99d16 --- /dev/null +++ b/sca-java-1.x/branches/sca-java-1.3.1/itest/bpel/ping-pong/test/resources/ping/ping.componentType @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sca-java-1.x/branches/sca-java-1.3.1/itest/bpel/ping-pong/test/resources/ping/ping.composite b/sca-java-1.x/branches/sca-java-1.3.1/itest/bpel/ping-pong/test/resources/ping/ping.composite new file mode 100644 index 0000000000..75eed03022 --- /dev/null +++ b/sca-java-1.x/branches/sca-java-1.3.1/itest/bpel/ping-pong/test/resources/ping/ping.composite @@ -0,0 +1,29 @@ + + + + + + + + + \ No newline at end of file diff --git a/sca-java-1.x/branches/sca-java-1.3.1/itest/bpel/ping-pong/test/resources/ping/ping.wsdl b/sca-java-1.x/branches/sca-java-1.3.1/itest/bpel/ping-pong/test/resources/ping/ping.wsdl new file mode 100644 index 0000000000..03e54c4de8 --- /dev/null +++ b/sca-java-1.x/branches/sca-java-1.3.1/itest/bpel/ping-pong/test/resources/ping/ping.wsdl @@ -0,0 +1,84 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sca-java-1.x/branches/sca-java-1.3.1/itest/bpel/ping-pong/test/resources/ping/pong.wsdl b/sca-java-1.x/branches/sca-java-1.3.1/itest/bpel/ping-pong/test/resources/ping/pong.wsdl new file mode 100644 index 0000000000..1f4c4a9aaa --- /dev/null +++ b/sca-java-1.x/branches/sca-java-1.3.1/itest/bpel/ping-pong/test/resources/ping/pong.wsdl @@ -0,0 +1,84 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sca-java-1.x/branches/sca-java-1.3.1/itest/bpel/ping-pong/test/resources/pong/deploy.xml b/sca-java-1.x/branches/sca-java-1.3.1/itest/bpel/ping-pong/test/resources/pong/deploy.xml new file mode 100644 index 0000000000..1315ef47f0 --- /dev/null +++ b/sca-java-1.x/branches/sca-java-1.3.1/itest/bpel/ping-pong/test/resources/pong/deploy.xml @@ -0,0 +1,31 @@ + + + + + + true + + + + + + diff --git a/sca-java-1.x/branches/sca-java-1.3.1/itest/bpel/ping-pong/test/resources/pong/pong.bpel b/sca-java-1.x/branches/sca-java-1.3.1/itest/bpel/ping-pong/test/resources/pong/pong.bpel new file mode 100644 index 0000000000..b5d84898c7 --- /dev/null +++ b/sca-java-1.x/branches/sca-java-1.3.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/sca-java-1.x/branches/sca-java-1.3.1/itest/bpel/ping-pong/test/resources/pong/pong.componentType b/sca-java-1.x/branches/sca-java-1.3.1/itest/bpel/ping-pong/test/resources/pong/pong.componentType new file mode 100644 index 0000000000..2f8fd5d3de --- /dev/null +++ b/sca-java-1.x/branches/sca-java-1.3.1/itest/bpel/ping-pong/test/resources/pong/pong.componentType @@ -0,0 +1,29 @@ + + + + + + + + + \ No newline at end of file diff --git a/sca-java-1.x/branches/sca-java-1.3.1/itest/bpel/ping-pong/test/resources/pong/pong.composite b/sca-java-1.x/branches/sca-java-1.3.1/itest/bpel/ping-pong/test/resources/pong/pong.composite new file mode 100644 index 0000000000..e40ce7ee45 --- /dev/null +++ b/sca-java-1.x/branches/sca-java-1.3.1/itest/bpel/ping-pong/test/resources/pong/pong.composite @@ -0,0 +1,30 @@ + + + + + + + + + + \ No newline at end of file diff --git a/sca-java-1.x/branches/sca-java-1.3.1/itest/bpel/ping-pong/test/resources/pong/pong.wsdl b/sca-java-1.x/branches/sca-java-1.3.1/itest/bpel/ping-pong/test/resources/pong/pong.wsdl new file mode 100644 index 0000000000..21ee8b82f6 --- /dev/null +++ b/sca-java-1.x/branches/sca-java-1.3.1/itest/bpel/ping-pong/test/resources/pong/pong.wsdl @@ -0,0 +1,93 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- cgit v1.2.3