Author: assaf
Date: Mon Nov 20 17:13:33 2006
New Revision: 477451

URL: http://svn.apache.org/viewvc?view=rev&rev=477451
Log:
Adding tests for atomic scope

Added:
    incubator/ode/trunk/bpel-runtime/src/test/resources/atomic/
    incubator/ode/trunk/bpel-runtime/src/test/resources/atomic/deploy.xml   
(with props)
    
incubator/ode/trunk/bpel-runtime/src/test/resources/atomic/same-transaction.bpel
    incubator/ode/trunk/bpel-runtime/src/test/resources/atomic/services.wsdl   
(with props)
    incubator/ode/trunk/bpel-runtime/src/test/resources/atomic/types.xsd   
(with props)

Added: incubator/ode/trunk/bpel-runtime/src/test/resources/atomic/deploy.xml
URL: 
http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-runtime/src/test/resources/atomic/deploy.xml?view=auto&rev=477451
==============================================================================
--- incubator/ode/trunk/bpel-runtime/src/test/resources/atomic/deploy.xml 
(added)
+++ incubator/ode/trunk/bpel-runtime/src/test/resources/atomic/deploy.xml Mon 
Nov 20 17:13:33 2006
@@ -0,0 +1,19 @@
+<?xml version="1.0" ?>
+<deploy xmlns="http://ode.fivesight.com/schemas/2006/06/27/dd";
+        xmlns:pns="http://ode.apache.org/bpel/unit-test";
+        xmlns:wns="http://ode.apache.org/bpel/unit-test";>
+
+  <process name="pns:SameTransaction">
+    <active>true</active>
+    <provide partnerLink="instantiatingPartnerLink">
+      <service name="wns:SameTransaction" port="soap"/>
+    </provide>
+    <invoke partnerLink="resourcePartnerLink">
+      <service name="wns:ResourceService" port="soap"/>
+    </invoke>
+    <invoke partnerLink="instantiatingPartnerLink">
+      <service name="wns:ResponseService" port="soap"/>
+    </invoke>
+  </process>
+
+</deploy>

Propchange: 
incubator/ode/trunk/bpel-runtime/src/test/resources/atomic/deploy.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
incubator/ode/trunk/bpel-runtime/src/test/resources/atomic/deploy.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: 
incubator/ode/trunk/bpel-runtime/src/test/resources/atomic/deploy.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: 
incubator/ode/trunk/bpel-runtime/src/test/resources/atomic/same-transaction.bpel
URL: 
http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-runtime/src/test/resources/atomic/same-transaction.bpel?view=auto&rev=477451
==============================================================================
--- 
incubator/ode/trunk/bpel-runtime/src/test/resources/atomic/same-transaction.bpel
 (added)
+++ 
incubator/ode/trunk/bpel-runtime/src/test/resources/atomic/same-transaction.bpel
 Mon Nov 20 17:13:33 2006
@@ -0,0 +1,52 @@
+<?xml version="1.0" encoding="utf-8"?>
+<process name="SameTransaction"
+         targetNamespace="http://ode.apache.org/bpel/unit-test"; 
+         xmlns="http://schemas.xmlsoap.org/ws/2004/03/business-process/";
+         xmlns:tns="http://ode.apache.org/bpel/unit-test";
+         xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
+
+  <import location="services.wsdl"
+          namespace="http://ode.apache.org/bpel/unit-test";
+          importType="http://schemas.xmlsoap.org/wsdl/"/>
+
+  <partnerLinks>
+    <partnerLink name="instantiatingPartnerLink" 
+                 partnerLinkType="tns:InstantiatingPartnerLinkType" 
+                 myRole="me" partnerRole="partner" 
initializePartnerRole="yes"/>
+    <partnerLink name="resourcePartnerLink" 
+                 partnerLinkType="tns:ResourcePartnerLinkType" 
+                 partnerRole="partner" initializePartnerRole="yes"/>
+  </partnerLinks>
+    
+  <variables>
+    <variable name="request" messageType="tns:Request"/>
+    <variable name="response" messageType="tns:Response"/>
+  </variables>
+
+  <sequence>   
+    <receive name="start"
+             partnerLink="instantiatingPartnerLink"
+             portType="tns:InstantiatingPortType"
+             operation="instantiate"
+             variable="request"
+             createInstance="yes"/>
+    <invoke name="invoke"
+            partnerLink="resourcePartnerLink"
+            portType="tns:ResourcePortType"
+            operation="invoke"
+            inputVariable="request"
+            outputVariable="response"/>
+    <invoke name="invoke"
+            partnerLink="resourcePartnerLink"
+            portType="tns:ResourcePortType"
+            operation="invoke"
+            inputVariable="request"
+            outputVariable="response"/>
+    <invoke name="response"
+            partnerLink="instantiatingPartnerLink"
+            portType="tns:ResponsePortType"
+            operation="respond"
+            inputVariable="response"/>
+  </sequence>
+
+</process>

Added: incubator/ode/trunk/bpel-runtime/src/test/resources/atomic/services.wsdl
URL: 
http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-runtime/src/test/resources/atomic/services.wsdl?view=auto&rev=477451
==============================================================================
--- incubator/ode/trunk/bpel-runtime/src/test/resources/atomic/services.wsdl 
(added)
+++ incubator/ode/trunk/bpel-runtime/src/test/resources/atomic/services.wsdl 
Mon Nov 20 17:13:33 2006
@@ -0,0 +1,113 @@
+<?xml version="1.0" encoding="utf-8"?>
+<definitions targetNamespace="http://ode.apache.org/bpel/unit-test"; 
+             xmlns="http://schemas.xmlsoap.org/wsdl/";
+             xmlns:tns="http://ode.apache.org/bpel/unit-test";
+             xmlns:xsd="http://www.w3.org/2001/XMLSchema";
+             xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
+             
xmlns:bpws="http://schemas.xmlsoap.org/ws/2004/03/business-process/";
+             xmlns:plnk="http://schemas.xmlsoap.org/ws/2004/03/partner-link/";>
+
+  <types>
+    <xsd:schema xmlns="http://www.w3.org/2001/XMLSchema";>
+      <import namespace="http://ode.apache.org/bpel/unit-test"; 
schemaLocation="types.xsd"/>
+    </xsd:schema>
+  </types>
+
+  <message name="Request">
+    <part name="main" element="tns:RequestElement"/>
+  </message>
+  <message name="Response">
+    <part name="main" element="tns:ResponseElement"/>
+  </message>
+
+  <portType name="InstantiatingPortType">
+    <operation name="instantiate">
+      <input message="tns:Request"/>
+    </operation>
+  </portType>
+  <portType name="ResourcePortType">
+    <operation name="invoke">
+      <input message="tns:Request"/>
+      <output message="tns:Response"/>
+    </operation>
+    <operation name="rollback">
+      <input message="tns:Request"/>
+      <output message="tns:Response"/>
+    </operation>
+  </portType>
+  <portType name="ResponsePortType">
+    <operation name="respond">
+      <input message="tns:Response"/>
+    </operation>
+  </portType>
+
+  <binding name="InstantiatingBinding" type="tns:InstantiatingPortType">
+    <soap:binding style="document" 
transport="http://schemas.xmlsoap.org/soap/http"/>
+    <operation name="instantiate">
+      <soap:operation/>
+      <input>
+        <soap:body use="literal"/>
+      </input>
+    </operation>
+  </binding>
+
+  <binding name="ResourceBinding" type="tns:ResourcePortType">
+    <soap:binding style="document" 
transport="http://schemas.xmlsoap.org/soap/http"/>
+    <operation name="invoke">
+      <soap:operation/>
+      <input>
+        <soap:body use="literal"/>
+      </input>
+      <output>
+        <soap:body use="literal"/>
+      </output>
+    </operation>
+    <operation name="rollback">
+      <soap:operation/>
+      <input>
+        <soap:body use="literal"/>
+      </input>
+      <output>
+        <soap:body use="literal"/>
+      </output>
+    </operation>
+  </binding>
+
+  <binding name="ResponseBinding" type="tns:ResponsePortType">
+    <soap:binding style="document" 
transport="http://schemas.xmlsoap.org/soap/http"/>
+    <operation name="respond">
+      <soap:operation/>
+      <input>
+        <soap:body use="literal"/>
+      </input>
+    </operation>
+  </binding>
+
+  <service name="ResourceService">
+    <port name="soap" binding="tns:ResourceBinding">
+      <soap:address location="http://localhost/ResourceEndpoint"/>
+    </port>
+  </service>
+
+  <service name="ResponseService">
+    <port name="soap" binding="tns:ResponseBinding">
+      <soap:address location="http://localhost/ResponseEndpoint"/>
+    </port>
+  </service>
+
+  <service name="SameTransactionService">
+    <port name="soap" binding="tns:InstantiatingBinding">
+      <soap:address location="http://localhost/SameTransaction"/>
+    </port>
+  </service>
+
+  <plnk:partnerLinkType name="ResourcePartnerLinkType">
+    <plnk:role name="partner" portType="tns:ResourcePortType"/>
+  </plnk:partnerLinkType>
+
+  <plnk:partnerLinkType name="InstantiatingPartnerLinkType">
+    <plnk:role name="me" portType="tns:InstantiatingPortType"/>
+    <plnk:role name="partner" portType="tns:ResponsePortType"/>
+  </plnk:partnerLinkType>
+
+</definitions>

Propchange: 
incubator/ode/trunk/bpel-runtime/src/test/resources/atomic/services.wsdl
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
incubator/ode/trunk/bpel-runtime/src/test/resources/atomic/services.wsdl
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: 
incubator/ode/trunk/bpel-runtime/src/test/resources/atomic/services.wsdl
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: incubator/ode/trunk/bpel-runtime/src/test/resources/atomic/types.xsd
URL: 
http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-runtime/src/test/resources/atomic/types.xsd?view=auto&rev=477451
==============================================================================
--- incubator/ode/trunk/bpel-runtime/src/test/resources/atomic/types.xsd (added)
+++ incubator/ode/trunk/bpel-runtime/src/test/resources/atomic/types.xsd Mon 
Nov 20 17:13:33 2006
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<schema targetNamespace="http://ode.apache.org/bpel/unit-test"; 
+        xmlns:tns="http://ode.apache.org/bpel/unit-test";
+        elementFormDefault="qualified" 
+        attributeFormDefault="qualified" 
+        xmlns="http://www.w3.org/2001/XMLSchema";
+        xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
+
+  <element name="RequestElement" type="xsd:string"/>
+  <element name="ResponseElement" type="xsd:string"/>
+
+</schema>

Propchange: incubator/ode/trunk/bpel-runtime/src/test/resources/atomic/types.xsd
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/ode/trunk/bpel-runtime/src/test/resources/atomic/types.xsd
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: incubator/ode/trunk/bpel-runtime/src/test/resources/atomic/types.xsd
------------------------------------------------------------------------------
    svn:mime-type = text/xml


Reply via email to