Author: jeff.yuchang
Date: 2010-09-15 01:27:10 -0400 (Wed, 15 Sep 2010)
New Revision: 948
Added:
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/testcases/RiftSaw278TestCase.java
trunk/integration-tests/src/test/resources/testcases/RiftSaw_278/
trunk/integration-tests/src/test/resources/testcases/RiftSaw_278/bpel/
trunk/integration-tests/src/test/resources/testcases/RiftSaw_278/bpel/deploy.xml
trunk/integration-tests/src/test/resources/testcases/RiftSaw_278/bpel/triple_hello.bpel
trunk/integration-tests/src/test/resources/testcases/RiftSaw_278/bpel/triple_hello.wsdl
trunk/integration-tests/src/test/resources/testcases/RiftSaw_278/build.xml
trunk/integration-tests/src/test/resources/testcases/RiftSaw_278/messages/
trunk/integration-tests/src/test/resources/testcases/RiftSaw_278/messages/hello_request1.xml
trunk/integration-tests/src/test/resources/testcases/RiftSaw_278/messages/hello_request2.xml
trunk/integration-tests/src/test/resources/testcases/RiftSaw_278/messages/hello_request3.xml
trunk/integration-tests/src/test/resources/testcases/RiftSaw_278/messages/hello_response1.xml
trunk/integration-tests/src/test/resources/testcases/RiftSaw_278/messages/hello_response2.xml
trunk/integration-tests/src/test/resources/testcases/RiftSaw_278/messages/hello_response3.xml
Modified:
trunk/integration-tests/build.xml
Log:
* Added integration test for RiftSaw-278.
Modified: trunk/integration-tests/build.xml
===================================================================
--- trunk/integration-tests/build.xml 2010-09-15 05:20:30 UTC (rev 947)
+++ trunk/integration-tests/build.xml 2010-09-15 05:27:10 UTC (rev 948)
@@ -159,7 +159,8 @@
<ant antfile="src/test/resources/testcases/RiftSaw_163/build.xml" />
<ant antfile="src/test/resources/testcases/RiftSaw_70/build.xml" />
<ant antfile="src/test/resources/testcases/RiftSaw_209/build.xml" />
- <ant antfile="src/test/resources/testcases/RiftSaw_279/build.xml" />
+ <ant antfile="src/test/resources/testcases/RiftSaw_278/build.xml" />
+ <ant
antfile="src/test/resources/testcases/RiftSaw_279/build.xml" />
<ant antfile="src/test/resources/tutorials/BluePrint1/build.xml" />
<ant antfile="src/test/resources/tutorials/BluePrint2/build.xml" />
Added:
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/testcases/RiftSaw278TestCase.java
===================================================================
---
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/testcases/RiftSaw278TestCase.java
(rev 0)
+++
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/testcases/RiftSaw278TestCase.java 2010-09-15
05:27:10 UTC (rev 948)
@@ -0,0 +1,62 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, 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 running the RiftSaw 278 testcase.
+ */
+public class RiftSaw278TestCase extends RiftSawTest {
+
+ private static final String TEST_NAME = "RiftSaw_278";
+
+ public RiftSaw278TestCase() {
+ super(TEST_NAME);
+ }
+
+ public static Test suite() {
+ return(new RiftSawTestSetup(RiftSaw278TestCase.class,
+ TEST_NAME, "RiftSaw_278-1.jar"));
+ }
+
+ public void testSendHello() throws Exception {
+
+ String result1=sendSOAPMessage("hello_request1.xml",
+ "http://localhost:8080/RiftSaw_278WS");
+ result1 = processResult(result1);
+ assertMessageFromFile(result1, "hello_response1.xml");
+
+ String result2=sendSOAPMessage("hello_request2.xml",
+ "http://localhost:8080/RiftSaw_278WS");
+ result2 = processResult(result2);
+ assertMessageFromFile(result2, "hello_response2.xml");
+
+ String result3=sendSOAPMessage("hello_request3.xml",
+ "http://localhost:8080/RiftSaw_278WS");
+ result3 = processResult(result3);
+ assertMessageFromFile(result3, "hello_response3.xml");
+ }
+}
Added: trunk/integration-tests/src/test/resources/testcases/RiftSaw_278/bpel/deploy.xml
===================================================================
--- trunk/integration-tests/src/test/resources/testcases/RiftSaw_278/bpel/deploy.xml
(rev 0)
+++
trunk/integration-tests/src/test/resources/testcases/RiftSaw_278/bpel/deploy.xml 2010-09-15
05:27:10 UTC (rev 948)
@@ -0,0 +1,29 @@
+<!--
+ ~ 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.
+ -->
+<deploy
xmlns="http://www.apache.org/ode/schemas/dd/2007/03"
+
xmlns:bpl="http://www.jboss.org/bpel/examples"
+
xmlns:intf="http://www.jboss.org/bpel/examples/wsdl">
+
+ <process name="bpl:TripleHello">
+ <active>true</active>
+ <provide partnerLink="tripleHelloPartnerLink">
+ <service name="intf:TripleHelloService"
port="TripleHelloPort"/>
+ </provide>
+ </process>
+</deploy>
Added:
trunk/integration-tests/src/test/resources/testcases/RiftSaw_278/bpel/triple_hello.bpel
===================================================================
---
trunk/integration-tests/src/test/resources/testcases/RiftSaw_278/bpel/triple_hello.bpel
(rev 0)
+++
trunk/integration-tests/src/test/resources/testcases/RiftSaw_278/bpel/triple_hello.bpel 2010-09-15
05:27:10 UTC (rev 948)
@@ -0,0 +1,122 @@
+<process name="TripleHello"
+
targetNamespace="http://www.jboss.org/bpel/examples"
+
xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
+
xmlns:tns="http://www.jboss.org/bpel/examples"
+
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+
xmlns:intf="http://www.jboss.org/bpel/examples/wsdl"
+ queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
+ expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
+
xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable...
+
+ <import location="triple_hello.wsdl"
+
namespace="http://www.jboss.org/bpel/examples/wsdl"
+
importType="http://schemas.xmlsoap.org/wsdl/" />
+
+ <partnerLinks>
+ <partnerLink name="tripleHelloPartnerLink"
+ partnerLinkType="intf:TripleHelloPartnerLinkType"
+ myRole="me" />
+ </partnerLinks>
+
+ <correlationSets
xmlns:cor="http://example.com/supplyCorrelation">
+ <correlationSet name="Session" properties="intf:SessionID"
/>
+ </correlationSets>
+
+ <variables>
+ <variable name="myHelloVar" messageType="intf:HelloMessage"
/>
+ <variable name="mesgVar" type="xsd:string" />
+ </variables>
+
+ <sequence>
+ <receive name="start1"
+ partnerLink="tripleHelloPartnerLink"
+ portType="intf:TripleHelloPortType"
+ operation="hello"
+ variable="myHelloVar"
+ createInstance="yes">
+
+ <correlations>
+ <correlation set="Session" initiate="yes" />
+ </correlations>
+ </receive>
+
+ <assign name="assignHelloMesg1">
+ <copy>
+ <from>concat('Hello ', $myHelloVar.Name)</from>
+ <to variable="mesgVar" />
+ </copy>
+ <copy>
+ <from>$mesgVar</from>
+ <to variable="myHelloVar" part="Name" />
+ </copy>
+ </assign>
+
+ <reply name="end1"
+ partnerLink="tripleHelloPartnerLink"
+ portType="intf:TripleHelloPortType"
+ operation="hello"
+ variable="myHelloVar">
+ </reply>
+
+ <receive name="start2"
+ partnerLink="tripleHelloPartnerLink"
+ portType="intf:TripleHelloPortType"
+ operation="hello"
+ variable="myHelloVar">
+
+ <correlations>
+ <correlation set="Session" initiate="no" />
+ </correlations>
+ </receive>
+
+ <assign name="assignHelloMesg2">
+ <copy><!-- Hello name1 and -->
+ <from>concat($mesgVar, concat(' and ', $myHelloVar.Name))</from>
+ <to variable="mesgVar" />
+ </copy>
+ <copy>
+ <from>$mesgVar</from>
+ <to variable="myHelloVar" part="Name" />
+ </copy>
+
+ </assign>
+
+ <reply name="end2"
+ partnerLink="tripleHelloPartnerLink"
+ portType="intf:TripleHelloPortType"
+ operation="hello"
+ variable="myHelloVar">
+ </reply>
+
+ <receive name="start3"
+ partnerLink="tripleHelloPartnerLink"
+ portType="intf:TripleHelloPortType"
+ operation="hello"
+ variable="myHelloVar">
+
+ <correlations>
+ <correlation set="Session" initiate="no" />
+ </correlations>
+ </receive>
+
+ <assign name="assignHelloMesg3">
+ <copy><!-- Hello name1 and -->
+ <from>concat($mesgVar, concat(' and ', $myHelloVar.Name))</from>
+ <to variable="mesgVar" />
+ </copy>
+ <copy>
+ <from>$mesgVar</from>
+ <to variable="myHelloVar" part="Name" />
+ </copy>
+
+ </assign>
+
+ <reply name="end3"
+ partnerLink="tripleHelloPartnerLink"
+ portType="intf:TripleHelloPortType"
+ operation="hello"
+ variable="myHelloVar">
+ </reply>
+
+ </sequence>
+</process>
Added:
trunk/integration-tests/src/test/resources/testcases/RiftSaw_278/bpel/triple_hello.wsdl
===================================================================
---
trunk/integration-tests/src/test/resources/testcases/RiftSaw_278/bpel/triple_hello.wsdl
(rev 0)
+++
trunk/integration-tests/src/test/resources/testcases/RiftSaw_278/bpel/triple_hello.wsdl 2010-09-15
05:27:10 UTC (rev 948)
@@ -0,0 +1,64 @@
+<?xml version="1.0" encoding="utf-8" ?>
+
+<wsdl:definitions
+
targetNamespace="http://www.jboss.org/bpel/examples/wsdl"
+
xmlns="http://schemas.xmlsoap.org/wsdl/"
+
xmlns:tns="http://www.jboss.org/bpel/examples/wsdl"
+
xmlns:types="http://www.jboss.org/bpel/examples/xsd"
+
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+
xmlns:vprop="http://docs.oasis-open.org/wsbpel/2.0/varprop"
+
xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype">
+
+ <wsdl:types>
+ </wsdl:types>
+
+ <wsdl:message name="HelloMessage">
+ <wsdl:part name="ID" type="xsd:int"/>
+ <wsdl:part name="Name" type="xsd:string"/>
+ </wsdl:message>
+
+ <wsdl:portType name="TripleHelloPortType">
+ <wsdl:operation name="hello">
+ <wsdl:input message="tns:HelloMessage"/>
+ <wsdl:output message="tns:HelloMessage"/>
+ </wsdl:operation>
+ </wsdl:portType>
+
+ <wsdl:binding name="TripleHelloSoapBinding"
type="tns:TripleHelloPortType">
+ <soap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http"/>
+ <wsdl:operation name="hello">
+ <soap:operation soapAction="" style="rpc"/>
+ <wsdl:input>
+ <soap:body
+
namespace="http://www.jboss.org/bpel/examples/wsdl"
+ use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body
+
namespace="http://www.jboss.org/bpel/examples/wsdl"
+ use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+
+ <wsdl:service name="TripleHelloService">
+ <wsdl:port name="TripleHelloPort"
binding="tns:TripleHelloSoapBinding">
+ <soap:address location="http://localhost:8080/RiftSaw_278WS"/>
+ </wsdl:port>
+ </wsdl:service>
+
+ <plnk:partnerLinkType name="TripleHelloPartnerLinkType">
+ <plnk:role name="me" portType="tns:TripleHelloPortType"/>
+ <plnk:role name="you" portType="tns:TripleHelloPortType"/>
+ </plnk:partnerLinkType>
+
+ <vprop:property name="SessionID" type="xsd:int" />
+
+ <vprop:propertyAlias propertyName="tns:SessionID"
+ messageType="tns:HelloMessage"
+ part="ID"/>
+
+</wsdl:definitions>
+
Added: trunk/integration-tests/src/test/resources/testcases/RiftSaw_278/build.xml
===================================================================
--- trunk/integration-tests/src/test/resources/testcases/RiftSaw_278/build.xml
(rev 0)
+++ trunk/integration-tests/src/test/resources/testcases/RiftSaw_278/build.xml 2010-09-15
05:27:10 UTC (rev 948)
@@ -0,0 +1,29 @@
+<project name="RiftSaw_278" 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_278/messages/hello_request1.xml
===================================================================
---
trunk/integration-tests/src/test/resources/testcases/RiftSaw_278/messages/hello_request1.xml
(rev 0)
+++
trunk/integration-tests/src/test/resources/testcases/RiftSaw_278/messages/hello_request1.xml 2010-09-15
05:27:10 UTC (rev 948)
@@ -0,0 +1,9 @@
+<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:wsdl="http://www.jboss.org/bpel/examples/wsdl">
+ <soapenv:Header/>
+ <soapenv:Body>
+ <wsdl:hello>
+ <ID>10</ID>
+ <Name>ODE</Name>
+ </wsdl:hello>
+ </soapenv:Body>
+</soapenv:Envelope>
Added:
trunk/integration-tests/src/test/resources/testcases/RiftSaw_278/messages/hello_request2.xml
===================================================================
---
trunk/integration-tests/src/test/resources/testcases/RiftSaw_278/messages/hello_request2.xml
(rev 0)
+++
trunk/integration-tests/src/test/resources/testcases/RiftSaw_278/messages/hello_request2.xml 2010-09-15
05:27:10 UTC (rev 948)
@@ -0,0 +1,9 @@
+<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:wsdl="http://www.jboss.org/bpel/examples/wsdl">
+ <soapenv:Header/>
+ <soapenv:Body>
+ <wsdl:hello>
+ <ID>10</ID>
+ <Name>BPEL</Name>
+ </wsdl:hello>
+ </soapenv:Body>
+</soapenv:Envelope>
Added:
trunk/integration-tests/src/test/resources/testcases/RiftSaw_278/messages/hello_request3.xml
===================================================================
---
trunk/integration-tests/src/test/resources/testcases/RiftSaw_278/messages/hello_request3.xml
(rev 0)
+++
trunk/integration-tests/src/test/resources/testcases/RiftSaw_278/messages/hello_request3.xml 2010-09-15
05:27:10 UTC (rev 948)
@@ -0,0 +1,9 @@
+<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:wsdl="http://www.jboss.org/bpel/examples/wsdl">
+ <soapenv:Header/>
+ <soapenv:Body>
+ <wsdl:hello>
+ <ID>10</ID>
+ <Name>RiftSaw</Name>
+ </wsdl:hello>
+ </soapenv:Body>
+</soapenv:Envelope>
Added:
trunk/integration-tests/src/test/resources/testcases/RiftSaw_278/messages/hello_response1.xml
===================================================================
---
trunk/integration-tests/src/test/resources/testcases/RiftSaw_278/messages/hello_response1.xml
(rev 0)
+++
trunk/integration-tests/src/test/resources/testcases/RiftSaw_278/messages/hello_response1.xml 2010-09-15
05:27:10 UTC (rev 948)
@@ -0,0 +1 @@
+<env:Envelope
xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'><env:...
xmlns:odens='http://www.jboss.org/bpel/examples/wsdl'><ID&g...
ODE</Name></odens:helloResponse></env:Body></env:Envelope>
\ No newline at end of file
Added:
trunk/integration-tests/src/test/resources/testcases/RiftSaw_278/messages/hello_response2.xml
===================================================================
---
trunk/integration-tests/src/test/resources/testcases/RiftSaw_278/messages/hello_response2.xml
(rev 0)
+++
trunk/integration-tests/src/test/resources/testcases/RiftSaw_278/messages/hello_response2.xml 2010-09-15
05:27:10 UTC (rev 948)
@@ -0,0 +1 @@
+<env:Envelope
xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'><env:...
xmlns:odens='http://www.jboss.org/bpel/examples/wsdl'><ID&g...
ODE and
BPEL</Name></odens:helloResponse></env:Body></env:Envelope>
\ No newline at end of file
Added:
trunk/integration-tests/src/test/resources/testcases/RiftSaw_278/messages/hello_response3.xml
===================================================================
---
trunk/integration-tests/src/test/resources/testcases/RiftSaw_278/messages/hello_response3.xml
(rev 0)
+++
trunk/integration-tests/src/test/resources/testcases/RiftSaw_278/messages/hello_response3.xml 2010-09-15
05:27:10 UTC (rev 948)
@@ -0,0 +1 @@
+<env:Envelope
xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'><env:...
xmlns:odens='http://www.jboss.org/bpel/examples/wsdl'><ID&g...
ODE and BPEL and
RiftSaw</Name></odens:helloResponse></env:Body></env:Envelope>
\ No newline at end of file