You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by an...@apache.org on 2007/02/28 17:17:01 UTC

svn commit: r512823 - in /incubator/tuscany/branches/sca-java-integration/testing/sca/itest/wsBindingTest/src: main/resources/WSBindingTest.composite main/resources/helloworldws.composite test/java/org/apache/tuscany/sca/itest/WSReferencesTestCase.java

Author: antelder
Date: Wed Feb 28 08:17:00 2007
New Revision: 512823

URL: http://svn.apache.org/viewvc?view=rev&rev=512823
Log:
Add test for service using no-args <binding.ws>

Modified:
    incubator/tuscany/branches/sca-java-integration/testing/sca/itest/wsBindingTest/src/main/resources/WSBindingTest.composite
    incubator/tuscany/branches/sca-java-integration/testing/sca/itest/wsBindingTest/src/main/resources/helloworldws.composite
    incubator/tuscany/branches/sca-java-integration/testing/sca/itest/wsBindingTest/src/test/java/org/apache/tuscany/sca/itest/WSReferencesTestCase.java

Modified: incubator/tuscany/branches/sca-java-integration/testing/sca/itest/wsBindingTest/src/main/resources/WSBindingTest.composite
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-integration/testing/sca/itest/wsBindingTest/src/main/resources/WSBindingTest.composite?view=diff&rev=512823&r1=512822&r2=512823
==============================================================================
--- incubator/tuscany/branches/sca-java-integration/testing/sca/itest/wsBindingTest/src/main/resources/WSBindingTest.composite (original)
+++ incubator/tuscany/branches/sca-java-integration/testing/sca/itest/wsBindingTest/src/main/resources/WSBindingTest.composite Wed Feb 28 08:17:00 2007
@@ -56,4 +56,15 @@
         <binding.ws uri="http://localhost:8080/services/HelloWorldWebService2"/>
     </reference>
 
+    <component name="HelloworldClientServiceSimplest">
+      <implementation.java class="helloworld.HelloWorldServiceComponent"/>
+      <reference name="helloWorldService">HelloworldClientServiceSimplestRef</reference>
+    </component>
+
+    <reference name="HelloworldClientServiceSimplestRef">
+        <interface.wsdl interface="http://helloworld#wsdl.interface(HelloWorld)" 
+            wsdli:wsdlLocation="http://helloworld wsdl/helloworld.wsdl" />
+        <binding.ws uri="http://localhost:8080/services/HelloWorldWebServiceSimplest"/>
+    </reference>
+
 </composite>

Modified: incubator/tuscany/branches/sca-java-integration/testing/sca/itest/wsBindingTest/src/main/resources/helloworldws.composite
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-integration/testing/sca/itest/wsBindingTest/src/main/resources/helloworldws.composite?view=diff&rev=512823&r1=512822&r2=512823
==============================================================================
--- incubator/tuscany/branches/sca-java-integration/testing/sca/itest/wsBindingTest/src/main/resources/helloworldws.composite (original)
+++ incubator/tuscany/branches/sca-java-integration/testing/sca/itest/wsBindingTest/src/main/resources/helloworldws.composite Wed Feb 28 08:17:00 2007
@@ -33,6 +33,12 @@
         <reference>HelloWorldServiceComponent</reference>
     </service>
 
+    <service name="HelloWorldWebServiceSimplest">
+        <interface.wsdl interface="http://helloworld#wsdl.interface(HelloWorld)" wsdli:wsdlLocation="http://helloworld wsdl/helloworld.wsdl" />
+        <binding.ws/>
+        <reference>HelloWorldServiceComponent</reference>
+    </service>
+
     <component name="HelloWorldServiceComponent">
         <implementation.java class="helloworld.HelloWorldImpl" />
     </component>

Modified: incubator/tuscany/branches/sca-java-integration/testing/sca/itest/wsBindingTest/src/test/java/org/apache/tuscany/sca/itest/WSReferencesTestCase.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-integration/testing/sca/itest/wsBindingTest/src/test/java/org/apache/tuscany/sca/itest/WSReferencesTestCase.java?view=diff&rev=512823&r1=512822&r2=512823
==============================================================================
--- incubator/tuscany/branches/sca-java-integration/testing/sca/itest/wsBindingTest/src/test/java/org/apache/tuscany/sca/itest/WSReferencesTestCase.java (original)
+++ incubator/tuscany/branches/sca-java-integration/testing/sca/itest/wsBindingTest/src/test/java/org/apache/tuscany/sca/itest/WSReferencesTestCase.java Wed Feb 28 08:17:00 2007
@@ -47,6 +47,12 @@
         Assert.assertEquals("Hi Petra", msg);
     }
 
+    public void testWSClientServiceSimplest() throws Exception {
+        HelloWorldService helloWorldService = compositeContext.locateService(HelloWorldService.class, "HelloworldClientServiceSimplest");
+        String msg = helloWorldService.getGreetings("Petra");
+        Assert.assertEquals("Hi Petra", msg);
+    }
+
     @Override
     protected void tearDown() throws Exception {
     	super.tearDown();



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org