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 16:34:40 UTC
svn commit: r512808 - in
/incubator/tuscany/branches/sca-java-integration/testing/sca/itest/wsBindingTest/src:
main/resources/WSBindingTest.composite
test/java/org/apache/tuscany/sca/itest/WSReferencesTestCase.java
Author: antelder
Date: Wed Feb 28 07:34:39 2007
New Revision: 512808
URL: http://svn.apache.org/viewvc?view=rev&rev=512808
Log:
Test for refernece with noargs <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/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=512808&r1=512807&r2=512808
==============================================================================
--- 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 07:34:39 2007
@@ -35,4 +35,16 @@
location="wsdl/helloworld.wsdl" />
</reference>
+ <component name="HelloworldClientSimplest">
+ <implementation.java class="helloworld.HelloWorldServiceComponent"/>
+ <reference name="helloWorldService">HelloworldClientRefSimplest</reference>
+ </component>
+
+ <reference name="HelloworldClientRefSimplest">
+ <interface.wsdl xmlns:wsdli="http://www.w3.org/2006/01/wsdl-instance"
+ interface="http://helloworld#wsdl.interface(HelloWorld)"
+ wsdli:wsdlLocation="http://helloworld wsdl/helloworld.wsdl" />
+ <binding.ws/>
+ </reference>
+
</composite>
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=512808&r1=512807&r2=512808
==============================================================================
--- 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 07:34:39 2007
@@ -35,6 +35,12 @@
Assert.assertEquals("Hi Petra", msg);
}
+ public void testWSClientSimplest() throws Exception {
+ HelloWorldService helloWorldService = compositeContext.locateService(HelloWorldService.class, "HelloworldClientSimplest");
+ 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