Author: objectiser
Date: 2011-12-06 16:07:57 -0500 (Tue, 06 Dec 2011)
New Revision: 1481
Added:
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/testcases/RiftSaw301TestCase.java
trunk/integration-tests/src/test/resources/testcases/RiftSaw_301/
trunk/integration-tests/src/test/resources/testcases/RiftSaw_301/bpel/
trunk/integration-tests/src/test/resources/testcases/RiftSaw_301/bpel/SynchronousSample.bpel
trunk/integration-tests/src/test/resources/testcases/RiftSaw_301/bpel/SynchronousSample.wsdl
trunk/integration-tests/src/test/resources/testcases/RiftSaw_301/bpel/SynchronousSample.xsd
trunk/integration-tests/src/test/resources/testcases/RiftSaw_301/bpel/deploy.xml
trunk/integration-tests/src/test/resources/testcases/RiftSaw_301/build.xml
trunk/integration-tests/src/test/resources/testcases/RiftSaw_301/messages/
trunk/integration-tests/src/test/resources/testcases/RiftSaw_301/messages/request.xml
trunk/integration-tests/src/test/resources/testcases/RiftSaw_301/messages/response.xml
Modified:
trunk/integration-tests/build.xml
trunk/pom.xml
Log:
RIFTSAW-301 add integration testcase.
Modified: trunk/integration-tests/build.xml
===================================================================
--- trunk/integration-tests/build.xml 2011-12-06 16:38:32 UTC (rev 1480)
+++ trunk/integration-tests/build.xml 2011-12-06 21:07:57 UTC (rev 1481)
@@ -209,6 +209,7 @@
<ant antfile="src/test/resources/testcases/RiftSaw_296/build.xml" />
<ant antfile="src/test/resources/testcases/RiftSaw_299_peer/build.xml"
/>
<ant antfile="src/test/resources/testcases/RiftSaw_299_ws/build.xml"
/>
+ <ant antfile="src/test/resources/testcases/RiftSaw_301/build.xml" />
<ant antfile="src/test/resources/testcases/RiftSaw_312/build.xml" />
<ant antfile="src/test/resources/testcases/RiftSaw_318/build.xml" />
<ant antfile="src/test/resources/testcases/RiftSaw_326/build.xml" />
Added:
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/testcases/RiftSaw301TestCase.java
===================================================================
---
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/testcases/RiftSaw301TestCase.java
(rev 0)
+++
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/testcases/RiftSaw301TestCase.java 2011-12-06
21:07:57 UTC (rev 1481)
@@ -0,0 +1,53 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.soa.bpel.tests.testcases;
+
+import org.jboss.soa.bpel.tests.RiftSawTest;
+import org.jboss.soa.bpel.tests.RiftSawTestSetup;
+
+import junit.framework.Test;
+
+/**
+ * Test case for RiftSaw_301
+ */
+public class RiftSaw301TestCase extends RiftSawTest {
+
+ private static final String TEST_NAME = "RiftSaw_301";
+
+ public RiftSaw301TestCase() {
+ super(TEST_NAME);
+ }
+
+ public static Test suite() {
+ return(new RiftSawTestSetup(RiftSaw301TestCase.class,
+ TEST_NAME, "RiftSaw_301-1.jar"));
+ }
+
+ public void testSendHello() throws Exception {
+ String result=sendSOAPMessage("request.xml",
+ "http://localhost:8080/RiftSaw_301WS");
+
+ result = processResult(result);
+
+ assertMessageFromFile(result, "response.xml");
+ }
+}
Added:
trunk/integration-tests/src/test/resources/testcases/RiftSaw_301/bpel/SynchronousSample.bpel
===================================================================
---
trunk/integration-tests/src/test/resources/testcases/RiftSaw_301/bpel/SynchronousSample.bpel
(rev 0)
+++
trunk/integration-tests/src/test/resources/testcases/RiftSaw_301/bpel/SynchronousSample.bpel 2011-12-06
21:07:57 UTC (rev 1481)
@@ -0,0 +1,119 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007, Sun Microsystems, Inc. All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+
+ * Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+ * Neither the name of Sun Microsystems, Inc. nor the names of its contributors
+ may be used to endorse or promote products derived from this software without
+ specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+ THE POSSIBILITY OF SUCH DAMAGE.
+-->
+<process name="SynchronousSample"
+
targetNamespace="http://enterprise.netbeans.org/bpel/SynchronousSamp...
+
xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
+
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+
xmlns:bpws="http://docs.oasis-open.org/wsbpel/2.0/process/executable...
+
xmlns:sxt="http://www.sun.com/wsbpel/2.0/process/executable/SUNExten...
+
xmlns:sxed="http://www.sun.com/wsbpel/2.0/process/executable/SUNExte...
+
xmlns:wsdlNS="http://enterprise.netbeans.org/bpel/SynchronousSample/...
+ xmlns:ns1="http://localhost/SynchronousSample/SynchronousSample"
+
xmlns:ns2="http://xml.netbeans.org/schema/SynchronousSample"
+
xmlns:ns3="http://docs.oasis-open.org/wsbpel/2.0/plnktype"
+ queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
+ expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0">
+
+ <import
namespace="http://xml.netbeans.org/schema/SynchronousSample"
+ location="SynchronousSample.xsd"
+
importType="http://www.w3.org/2001/XMLSchema"/>
+
+ <import
namespace="http://localhost/SynchronousSample/SynchronousSample"
+ location="SynchronousSample.wsdl"
+
importType="http://schemas.xmlsoap.org/wsdl/"/>
+
+ <partnerLinks>
+ <partnerLink
+ name="SynchronousSample"
+ partnerLinkType="ns1:partnerlinktype1"
+ myRole="partnerlinktyperole1">
+ </partnerLink>
+ </partnerLinks>
+
+ <variables>
+ <variable name="outputVar"
messageType="ns1:responseMessage">
+ </variable>
+
+ <variable name="inputVar"
messageType="ns1:requestMessage">
+ </variable>
+
+ <variable name="inputFlexAssignVar"
element="ns2:typeA">
+ </variable>
+ </variables>
+
+ <sequence>
+
+ <receive
+ name="start"
+ partnerLink="SynchronousSample"
+ operation="operation1"
+ portType="ns1:portType1"
+ variable="inputVar"
+ createInstance="yes">
+ </receive>
+
+ <assign name="FlexAssign">
+ <copy insertMissingToData="yes">
+ <from>$inputVar.inputType/ns2:paramA</from>
+ <to>$inputFlexAssignVar/child::ns2:args0</to>
+ </copy>
+ </assign>
+
+ <!--assign name="init2">
+ <copy>
+ <from>
+ <literal xml:space="preserve">
+ <tns:typeA
xmlns:tns="http://xml.netbeans.org/schema/SynchronousSample"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <tns:paramA></tns:paramA>
+ </tns:typeA>
+ </literal>
+ </from>
+ <to>$outputVar.resultType</to>
+ </copy>
+ </assign-->
+
+ <assign name="Assign1">
+ <copy insertMissingToData="yes">
+ <from>$inputVar.inputType/ns2:paramA</from>
+ <to>$outputVar.resultType/child::ns2:paramA</to>
+ </copy>
+ </assign>
+
+ <reply
+ name="end"
+ partnerLink="SynchronousSample"
+ operation="operation1"
+ portType="ns1:portType1"
+ variable="outputVar">
+ </reply>
+ </sequence>
+</process>
+
Added:
trunk/integration-tests/src/test/resources/testcases/RiftSaw_301/bpel/SynchronousSample.wsdl
===================================================================
---
trunk/integration-tests/src/test/resources/testcases/RiftSaw_301/bpel/SynchronousSample.wsdl
(rev 0)
+++
trunk/integration-tests/src/test/resources/testcases/RiftSaw_301/bpel/SynchronousSample.wsdl 2011-12-06
21:07:57 UTC (rev 1481)
@@ -0,0 +1,87 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007, Sun Microsystems, Inc. All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+
+ * Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+ * Neither the name of Sun Microsystems, Inc. nor the names of its contributors
+ may be used to endorse or promote products derived from this software without
+ specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+ THE POSSIBILITY OF SUCH DAMAGE.
+-->
+<definitions
+
xmlns="http://schemas.xmlsoap.org/wsdl/"
+
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
name="SynchronousSample"
+ targetNamespace="http://localhost/SynchronousSample/SynchronousSample"
+ xmlns:tns="http://localhost/SynchronousSample/SynchronousSample"
+
xmlns:ns="http://xml.netbeans.org/schema/SynchronousSample"
+
xmlns:plink="http://docs.oasis-open.org/wsbpel/2.0/plnktype"
+
xmlns:bpws="http://docs.oasis-open.org/wsbpel/2.0/varprop">
+
+ <types>
+ <xsd:schema
targetNamespace="http://localhost/SynchronousSample/SynchronousSample">
+ <xsd:import
namespace="http://xml.netbeans.org/schema/SynchronousSample"
schemaLocation="SynchronousSample.xsd"/>
+ </xsd:schema>
+ </types>
+
+ <message name="requestMessage">
+ <part name="inputType" element="ns:typeA"/>
+ </message>
+
+ <message name="responseMessage">
+ <part name="resultType" element="ns:typeA"/>
+ </message>
+
+ <portType name="portType1">
+ <operation name="operation1">
+ <input name="input1"
message="tns:requestMessage"/>
+ <output name="output1"
message="tns:responseMessage"/>
+ </operation>
+ </portType>
+
+ <binding name="binding1" type="tns:portType1">
+ <soap:binding
transport="http://schemas.xmlsoap.org/soap/http"
style="document"/>
+ <operation name="operation1">
+ <input name="input1">
+ <soap:body use="literal"/>
+ </input>
+ <output name="output1">
+ <soap:body use="literal"/>
+ </output>
+ </operation>
+ </binding>
+
+ <service name="SynchronousSample">
+ <port name="port1" binding="tns:binding1">
+ <soap:address location="http://localhost:8080/RiftSaw_301WS"
/>
+ </port>
+ <port name="port1Http" binding="tns:binding1">
+ <soap:address location="http://localhost:8080/RiftSaw_301WS"
/>
+ </port>
+ </service>
+
+ <plink:partnerLinkType name="partnerlinktype1">
+ <plink:role name="partnerlinktyperole1"
portType="tns:portType1"/>
+ </plink:partnerLinkType>
+</definitions>
Added:
trunk/integration-tests/src/test/resources/testcases/RiftSaw_301/bpel/SynchronousSample.xsd
===================================================================
---
trunk/integration-tests/src/test/resources/testcases/RiftSaw_301/bpel/SynchronousSample.xsd
(rev 0)
+++
trunk/integration-tests/src/test/resources/testcases/RiftSaw_301/bpel/SynchronousSample.xsd 2011-12-06
21:07:57 UTC (rev 1481)
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (c) 2007, Sun Microsystems, Inc. All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+
+ * Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+ * Neither the name of Sun Microsystems, Inc. nor the names of its contributors
+ may be used to endorse or promote products derived from this software without
+ specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+ THE POSSIBILITY OF SUCH DAMAGE.
+-->
+<xsd:schema
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+
targetNamespace="http://xml.netbeans.org/schema/SynchronousSample"
+
xmlns:tns="http://xml.netbeans.org/schema/SynchronousSample"
+ elementFormDefault="qualified">
+
+ <xsd:complexType name="simpleProcess">
+ <xsd:sequence>
+ <xsd:element name="paramA" type="xsd:string"/>
+ </xsd:sequence>
+ </xsd:complexType>
+
+ <xsd:element name="typeA" type="tns:simpleProcess"/>
+</xsd:schema>
\ No newline at end of file
Added: trunk/integration-tests/src/test/resources/testcases/RiftSaw_301/bpel/deploy.xml
===================================================================
--- trunk/integration-tests/src/test/resources/testcases/RiftSaw_301/bpel/deploy.xml
(rev 0)
+++
trunk/integration-tests/src/test/resources/testcases/RiftSaw_301/bpel/deploy.xml 2011-12-06
21:07:57 UTC (rev 1481)
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<deploy
xmlns="http://www.apache.org/ode/schemas/dd/2007/03"
+
xmlns:SS1BPEL="http://enterprise.netbeans.org/bpel/SynchronousSample...
+ xmlns:SS1WSDL="http://localhost/SynchronousSample/SynchronousSample">
+ <process name="SS1BPEL:SynchronousSample">
+ <active>true</active>
+ <process-events generate="all"/>
+ <provide partnerLink="SynchronousSample">
+ <service name="SS1WSDL:SynchronousSample" port="port1"/>
+ </provide>
+ </process>
+</deploy>
+
Added: trunk/integration-tests/src/test/resources/testcases/RiftSaw_301/build.xml
===================================================================
--- trunk/integration-tests/src/test/resources/testcases/RiftSaw_301/build.xml
(rev 0)
+++ trunk/integration-tests/src/test/resources/testcases/RiftSaw_301/build.xml 2011-12-06
21:07:57 UTC (rev 1481)
@@ -0,0 +1,29 @@
+<project name="RiftSaw_301" default="deploy"
basedir=".">
+
+ <description>
+ ${ant.project.name}
+ ${line.separator}
+ </description>
+
+ <property name="version" value="1" />
+
+ <property name="deploy.dir" value="${basedir}/target/tests"/>
+ <property name="test.dir"
value="${basedir}/src/test/resources/testcases/${ant.project.name}"/>
+
+ <property name="sample.jar.name"
value="${ant.project.name}-${version}.jar" />
+
+ <target name="deploy">
+ <echo>Deploy ${ant.project.name}</echo>
+ <mkdir dir="${deploy.dir}/${ant.project.name}" />
+ <jar basedir="${test.dir}/bpel"
destfile="${deploy.dir}/${ant.project.name}/${sample.jar.name}" />
+
+ <copy todir="${deploy.dir}/${ant.project.name}">
+ <fileset dir="${test.dir}/messages"/>
+ </copy>
+ </target>
+
+ <target name="undeploy">
+ <echo>Undeploy ${ant.project.name}</echo>
+ <delete file="${deploy.dir}/${sample.jar.name}" />
+ </target>
+</project>
Added:
trunk/integration-tests/src/test/resources/testcases/RiftSaw_301/messages/request.xml
===================================================================
--- trunk/integration-tests/src/test/resources/testcases/RiftSaw_301/messages/request.xml
(rev 0)
+++
trunk/integration-tests/src/test/resources/testcases/RiftSaw_301/messages/request.xml 2011-12-06
21:07:57 UTC (rev 1481)
@@ -0,0 +1,8 @@
+<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:syn="http://xml.netbeans.org/schema/SynchronousSample">
+ <soapenv:Header/>
+ <soapenv:Body>
+ <syn:typeA>
+ <syn:paramA>Hello</syn:paramA>
+ </syn:typeA>
+ </soapenv:Body>
+</soapenv:Envelope>
\ No newline at end of file
Added:
trunk/integration-tests/src/test/resources/testcases/RiftSaw_301/messages/response.xml
===================================================================
---
trunk/integration-tests/src/test/resources/testcases/RiftSaw_301/messages/response.xml
(rev 0)
+++
trunk/integration-tests/src/test/resources/testcases/RiftSaw_301/messages/response.xml 2011-12-06
21:07:57 UTC (rev 1481)
@@ -0,0 +1 @@
+<env:Envelope
xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'><env:...
xmlns='http://xml.netbeans.org/schema/SynchronousSample'><n...
xmlns:ns2='http://xml.netbeans.org/schema/SynchronousSample'>H...
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2011-12-06 16:38:32 UTC (rev 1480)
+++ trunk/pom.xml 2011-12-06 21:07:57 UTC (rev 1481)
@@ -85,7 +85,7 @@
</profiles>
<properties>
- <riftsaw.ode.version>2.3.0.Final</riftsaw.ode.version>
+ <riftsaw.ode.version>2.4.0-SNAPSHOT</riftsaw.ode.version>
<riftsaw.engine.version>2.4.0-SNAPSHOT</riftsaw.engine.version>
<bpel.console.version>2.2.7.Final</bpel.console.version>
<activity.monitor.model.version>1.0.0.Final</activity.monitor.model.version>