tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lrese...@apache.org
Subject svn commit: r656340 - in /incubator/tuscany/java/sca/itest/bpel/helloworld-ws: ./ pom.xml src/ src/test/java/helloworld/HelloWorldTestCase.java src/test/resources/helloworld/helloworld.composite
Date Wed, 14 May 2008 17:48:42 GMT
Author: lresende
Date: Wed May 14 10:48:42 2008
New Revision: 656340

URL: http://svn.apache.org/viewvc?rev=656340&view=rev
Log:
iTest where a BPEL component is exposed using a ws binding.

Added:
    incubator/tuscany/java/sca/itest/bpel/helloworld-ws/
      - copied from r654670, incubator/tuscany/java/sca/itest/bpel/helloworld/
    incubator/tuscany/java/sca/itest/bpel/helloworld-ws/pom.xml
      - copied, changed from r656320, incubator/tuscany/java/sca/itest/bpel/helloworld/pom.xml
    incubator/tuscany/java/sca/itest/bpel/helloworld-ws/src/
      - copied from r656320, incubator/tuscany/java/sca/itest/bpel/helloworld/src/
Modified:
    incubator/tuscany/java/sca/itest/bpel/helloworld-ws/src/test/java/helloworld/HelloWorldTestCase.java
    incubator/tuscany/java/sca/itest/bpel/helloworld-ws/src/test/resources/helloworld/helloworld.composite

Copied: incubator/tuscany/java/sca/itest/bpel/helloworld-ws/pom.xml (from r656320, incubator/tuscany/java/sca/itest/bpel/helloworld/pom.xml)
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/itest/bpel/helloworld-ws/pom.xml?p2=incubator/tuscany/java/sca/itest/bpel/helloworld-ws/pom.xml&p1=incubator/tuscany/java/sca/itest/bpel/helloworld/pom.xml&r1=656320&r2=656340&rev=656340&view=diff
==============================================================================
--- incubator/tuscany/java/sca/itest/bpel/helloworld/pom.xml (original)
+++ incubator/tuscany/java/sca/itest/bpel/helloworld-ws/pom.xml Wed May 14 10:48:42 2008
@@ -25,7 +25,7 @@
         <version>2.0-incubating-SNAPSHOT</version>
         <relativePath>../../pom.xml</relativePath>
     </parent>
-    <artifactId>itest-bpel-helloworld</artifactId>
+    <artifactId>itest-bpel-helloworld-ws</artifactId>
     <name>Apache Tuscany SCA HelloWorld BPEL iTest</name>
 
     <repositories>
@@ -57,6 +57,13 @@
         </dependency>
 
         <dependency>
+            <groupId>org.apache.tuscany.sca</groupId>
+            <artifactId>tuscany-binding-ws-axis2</artifactId>
+            <version>2.0-incubating-SNAPSHOT</version>
+            <scope>runtime</scope>
+        </dependency>
+		
+        <dependency>
             <groupId>org.apache.tuscany.sdo</groupId>
             <artifactId>tuscany-sdo-impl</artifactId>
             <version>1.1-incubating</version>

Modified: incubator/tuscany/java/sca/itest/bpel/helloworld-ws/src/test/java/helloworld/HelloWorldTestCase.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/itest/bpel/helloworld-ws/src/test/java/helloworld/HelloWorldTestCase.java?rev=656340&r1=656320&r2=656340&view=diff
==============================================================================
--- incubator/tuscany/java/sca/itest/bpel/helloworld-ws/src/test/java/helloworld/HelloWorldTestCase.java
(original)
+++ incubator/tuscany/java/sca/itest/bpel/helloworld-ws/src/test/java/helloworld/HelloWorldTestCase.java
Wed May 14 10:48:42 2008
@@ -19,6 +19,9 @@
 
 package helloworld;
 
+import java.io.IOException;
+import java.net.Socket;
+
 import junit.framework.TestCase;
 
 import org.apache.tuscany.implementation.bpel.example.helloworld.HelloPortType;
@@ -49,15 +52,13 @@
         scaDomain.close();
     }
     
-    public void testServiceInvocation() throws Exception {
-        HelloPortType bpelService = scaDomain.getService(HelloPortType.class, "BPELHelloWorldService");
-        String response = bpelService.hello("Hello");
-        assertEquals("Hello World", response);
+    public void testPing() throws IOException {
+        new Socket("127.0.0.1", 8085);
     }
     
-    public void testReferenceInvocation() throws Exception {
-        HelloWorld bpelService = scaDomain.getService(HelloWorld.class, "BPELHelloWorld");
+    public void testServiceInvocation() throws Exception {
+        HelloPortType bpelService = scaDomain.getService(HelloPortType.class, "BPELHelloWorldServiceComponent");
         String response = bpelService.hello("Hello");
-        assertEquals("Hello World", response);        
+        assertEquals("Hello World", response);
     }
 }

Modified: incubator/tuscany/java/sca/itest/bpel/helloworld-ws/src/test/resources/helloworld/helloworld.composite
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/itest/bpel/helloworld-ws/src/test/resources/helloworld/helloworld.composite?rev=656340&r1=656320&r2=656340&view=diff
==============================================================================
--- incubator/tuscany/java/sca/itest/bpel/helloworld-ws/src/test/resources/helloworld/helloworld.composite
(original)
+++ incubator/tuscany/java/sca/itest/bpel/helloworld-ws/src/test/resources/helloworld/helloworld.composite
Wed May 14 10:48:42 2008
@@ -22,15 +22,11 @@
     xmlns:hns="http://tuscany.apache.org/implementation/bpel/example/helloworld"
     name="helloworld">
     
-    <component name="BPELHelloWorld">
-        <implementation.java class="helloworld.HelloWorld"/>
-        <reference name="helloService" target="BPELHelloWorldService">
-            <!--  Workaround for databinding issue -->
-        	<!--  interface.wsdl interface="http://tuscany.apache.org/implementation/bpel/example/helloworld.wsdl#wsdl.interface(HelloPortType)"
/ -->
-        </reference>
-    </component>
-    
-    <component name="BPELHelloWorldService">
+    <component name="BPELHelloWorldServiceComponent">
         <implementation.bpel process="hns:HelloWorld"/>
+        <service name="helloPartnerLink">
+        	<interface.wsdl interface="http://tuscany.apache.org/implementation/bpel/example/helloworld.wsdl#wsdl.interface(HelloPortType)"
/>
+        	<binding.ws uri="http://localhost:8085/HelloPartnerLink"/>
+        </service>
     </component>
 </composite>



Mime
View raw message