summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk
diff options
context:
space:
mode:
authorslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2010-02-26 15:05:00 +0000
committerslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2010-02-26 15:05:00 +0000
commit64ebd969e7c3f10c8058f9b937af09262f86ed5c (patch)
treeca8a836d8974d80a499676c4e439e605bc7b5c7e /sca-java-2.x/trunk
parentc98af2296d261e2d109da546b1a0bb60bb66e914 (diff)
Add client component that uses a target reference
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@916704 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r--sca-java-2.x/trunk/itest/ws/http-ssl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld/helloworld.composite6
-rw-r--r--sca-java-2.x/trunk/itest/ws/http-ssl/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/HTTPSTestCase.java3
2 files changed, 8 insertions, 1 deletions
diff --git a/sca-java-2.x/trunk/itest/ws/http-ssl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld/helloworld.composite b/sca-java-2.x/trunk/itest/ws/http-ssl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld/helloworld.composite
index 15f82a1773..a56dfb6212 100644
--- a/sca-java-2.x/trunk/itest/ws/http-ssl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld/helloworld.composite
+++ b/sca-java-2.x/trunk/itest/ws/http-ssl/src/main/resources/org/apache/tuscany/sca/binding/ws/axis2/helloworld/helloworld.composite
@@ -48,6 +48,10 @@
<service name="HelloWorld" requires="confidentiality">
<binding.ws/>
</service>
- </component>
+ </component>
+ <component name="HelloWorldClient3">
+ <implementation.java class="org.apache.tuscany.sca.binding.ws.axis2.helloworld.HelloWorldClient"/>
+ <reference name="helloWorldWS" requires="confidentiality" target="HelloWorldService2"/>
+ </component>
</composite>
diff --git a/sca-java-2.x/trunk/itest/ws/http-ssl/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/HTTPSTestCase.java b/sca-java-2.x/trunk/itest/ws/http-ssl/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/HTTPSTestCase.java
index f117c5d4ec..63b781529e 100644
--- a/sca-java-2.x/trunk/itest/ws/http-ssl/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/HTTPSTestCase.java
+++ b/sca-java-2.x/trunk/itest/ws/http-ssl/src/test/java/org/apache/tuscany/sca/binding/ws/axis2/HTTPSTestCase.java
@@ -31,6 +31,7 @@ public class HTTPSTestCase extends TestCase {
private Node node;
private HelloWorld helloWorld;
private HelloWorld helloWorld2;
+ private HelloWorld helloWorld3;
@Override
protected void setUp() throws Exception {
@@ -38,11 +39,13 @@ public class HTTPSTestCase extends TestCase {
node.start();
helloWorld = node.getService(HelloWorld.class, "HelloWorldClient");
helloWorld2 = node.getService(HelloWorld.class, "HelloWorldClient2");
+ helloWorld3 = node.getService(HelloWorld.class, "HelloWorldClient3");
}
public void testCalculator() throws Exception {
assertEquals("Hello petra", helloWorld.getGreetings("petra"));
assertEquals("Hello petra", helloWorld2.getGreetings("petra"));
+ assertEquals("Hello petra", helloWorld3.getGreetings("petra"));
}
@Override