You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by sl...@apache.org on 2010/02/26 15:46:05 UTC
svn commit: r916697 - in /tuscany/sca-java-2.x/trunk/itest/ws/http-ssl/src:
main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld/helloworld.composite
test/java/org/apache/tuscany/sca/binding/ws/axis2/HTTPSTestCase.java
Author: slaws
Date: Fri Feb 26 14:46:05 2010
New Revision: 916697
URL: http://svn.apache.org/viewvc?rev=916697&view=rev
Log:
Extend test case for binding with no explicit URL
Modified:
tuscany/sca-java-2.x/trunk/itest/ws/http-ssl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld/helloworld.composite
tuscany/sca-java-2.x/trunk/itest/ws/http-ssl/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/HTTPSTestCase.java
Modified: tuscany/sca-java-2.x/trunk/itest/ws/http-ssl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld/helloworld.composite
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/itest/ws/http-ssl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld/helloworld.composite?rev=916697&r1=916696&r2=916697&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/itest/ws/http-ssl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld/helloworld.composite (original)
+++ tuscany/sca-java-2.x/trunk/itest/ws/http-ssl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld/helloworld.composite Fri Feb 26 14:46:05 2010
@@ -25,15 +25,29 @@
<component name="HelloWorldClient">
<implementation.java class="org.apache.tuscany.sca.binding.ws.axis2.helloworld.HelloWorldClient"/>
<reference name="helloWorldWS" requires="confidentiality">
- <binding.ws uri="https://localhost:8443/HelloWorld" />
+ <binding.ws uri="https://localhost:8443/HelloWorldService/HelloWorld" />
</reference>
</component>
<component name="HelloWorldService">
<implementation.java class="org.apache.tuscany.sca.binding.ws.axis2.helloworld.HelloWorldService"/>
<service name="HelloWorld" requires="confidentiality">
- <binding.ws uri="https://localhost:8443/HelloWorld" />
+ <binding.ws uri="https://localhost:8443/HelloWorldService/HelloWorld" />
</service>
</component>
+ <component name="HelloWorldClient2">
+ <implementation.java class="org.apache.tuscany.sca.binding.ws.axis2.helloworld.HelloWorldClient"/>
+ <reference name="helloWorldWS" requires="confidentiality">
+ <binding.ws uri="https://localhost:8443/HelloWorldService2/HelloWorld" />
+ </reference>
+ </component>
+
+ <component name="HelloWorldService2">
+ <implementation.java class="org.apache.tuscany.sca.binding.ws.axis2.helloworld.HelloWorldService"/>
+ <service name="HelloWorld" requires="confidentiality">
+ <binding.ws/>
+ </service>
+ </component>
+
</composite>
Modified: tuscany/sca-java-2.x/trunk/itest/ws/http-ssl/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/HTTPSTestCase.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/itest/ws/http-ssl/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/HTTPSTestCase.java?rev=916697&r1=916696&r2=916697&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/itest/ws/http-ssl/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/HTTPSTestCase.java (original)
+++ tuscany/sca-java-2.x/trunk/itest/ws/http-ssl/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/HTTPSTestCase.java Fri Feb 26 14:46:05 2010
@@ -30,18 +30,21 @@
private Node node;
private HelloWorld helloWorld;
-
- public void testCalculator() throws Exception {
- assertEquals("Hello petra", helloWorld.getGreetings("petra"));
- }
-
+ private HelloWorld helloWorld2;
+
@Override
protected void setUp() throws Exception {
node = NodeFactory.newInstance().createNode(new Contribution("test", "target/classes"));
node.start();
helloWorld = node.getService(HelloWorld.class, "HelloWorldClient");
+ helloWorld2 = node.getService(HelloWorld.class, "HelloWorldClient2");
}
+ public void testCalculator() throws Exception {
+ assertEquals("Hello petra", helloWorld.getGreetings("petra"));
+ assertEquals("Hello petra", helloWorld2.getGreetings("petra"));
+ }
+
@Override
protected void tearDown() throws Exception {
node.stop();