summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/testing
diff options
context:
space:
mode:
authorslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2011-06-15 13:31:01 +0000
committerslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2011-06-15 13:31:01 +0000
commit817f391d1d346d38df772c774862f17762564dd8 (patch)
tree061f18313bf6aa3720ec5028b1640dad3980015d /sca-java-2.x/trunk/testing
parent2612daddaf7657757ad960b440100241329df34d (diff)
Add intents to implementations. It shows that implementation policy is not being handled correctly.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1136033 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/testing')
-rw-r--r--sca-java-2.x/trunk/testing/itest/policy/interceptors/src/main/java/helloworld/HelloWorldClient.java2
-rw-r--r--sca-java-2.x/trunk/testing/itest/policy/interceptors/src/main/java/testpolicy/TestPolicyInterceptor.java2
-rw-r--r--sca-java-2.x/trunk/testing/itest/policy/interceptors/src/main/resources/helloworld.composite3
3 files changed, 5 insertions, 2 deletions
diff --git a/sca-java-2.x/trunk/testing/itest/policy/interceptors/src/main/java/helloworld/HelloWorldClient.java b/sca-java-2.x/trunk/testing/itest/policy/interceptors/src/main/java/helloworld/HelloWorldClient.java
index c51dc66caf..d27bf754fb 100644
--- a/sca-java-2.x/trunk/testing/itest/policy/interceptors/src/main/java/helloworld/HelloWorldClient.java
+++ b/sca-java-2.x/trunk/testing/itest/policy/interceptors/src/main/java/helloworld/HelloWorldClient.java
@@ -20,7 +20,9 @@
package helloworld;
import org.oasisopen.sca.annotation.Reference;
+import org.oasisopen.sca.annotation.Requires;
+@Requires("{http://tuscany.apache.org/xmlns/sca/1.1}testIntent")
public class HelloWorldClient implements HelloWorld {
@Reference
diff --git a/sca-java-2.x/trunk/testing/itest/policy/interceptors/src/main/java/testpolicy/TestPolicyInterceptor.java b/sca-java-2.x/trunk/testing/itest/policy/interceptors/src/main/java/testpolicy/TestPolicyInterceptor.java
index ea6b31c5cb..6600f34b66 100644
--- a/sca-java-2.x/trunk/testing/itest/policy/interceptors/src/main/java/testpolicy/TestPolicyInterceptor.java
+++ b/sca-java-2.x/trunk/testing/itest/policy/interceptors/src/main/java/testpolicy/TestPolicyInterceptor.java
@@ -76,7 +76,7 @@ public class TestPolicyInterceptor implements PhasedInterceptor {
}
public Message invoke(Message msg) {
- System.out.println("In interceptor");
+ System.out.println("In interceptor at " + subject.toString());
return getNext().invoke(msg);
}
diff --git a/sca-java-2.x/trunk/testing/itest/policy/interceptors/src/main/resources/helloworld.composite b/sca-java-2.x/trunk/testing/itest/policy/interceptors/src/main/resources/helloworld.composite
index fa3d9ee701..79efac49c3 100644
--- a/sca-java-2.x/trunk/testing/itest/policy/interceptors/src/main/resources/helloworld.composite
+++ b/sca-java-2.x/trunk/testing/itest/policy/interceptors/src/main/resources/helloworld.composite
@@ -31,7 +31,8 @@
</component>
<component name="HelloWorldService">
- <implementation.java class="helloworld.HelloWorldService"/>
+ <implementation.java class="helloworld.HelloWorldService"
+ requires="tuscany:testIntent"/>
<service name="HelloWorld" requires="tuscany:testIntent">
<binding.ws name="BindingWS"/>
</service>