summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/testing
diff options
context:
space:
mode:
authorslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2011-06-16 11:56:44 +0000
committerslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2011-06-16 11:56:44 +0000
commita37832b899749c9378ba556a91a11554b65722ad (patch)
treebf93afe1a2ad3044d5c794a21d557c71f48b5d15 /sca-java-2.x/trunk/testing
parent817f391d1d346d38df772c774862f17762564dd8 (diff)
TUSCANY-3873 - modify the policy matching algorithm for the case where the reference has a target but no policy and the service has policy. In this case the code now copies the service policy to the reference.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1136386 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/matching/src/test/java/org/apache/tuscany/sca/policy/matching/MatchingTestCase.java9
1 files changed, 2 insertions, 7 deletions
diff --git a/sca-java-2.x/trunk/testing/itest/policy/matching/src/test/java/org/apache/tuscany/sca/policy/matching/MatchingTestCase.java b/sca-java-2.x/trunk/testing/itest/policy/matching/src/test/java/org/apache/tuscany/sca/policy/matching/MatchingTestCase.java
index d5112e5312..5b1f971a3a 100644
--- a/sca-java-2.x/trunk/testing/itest/policy/matching/src/test/java/org/apache/tuscany/sca/policy/matching/MatchingTestCase.java
+++ b/sca-java-2.x/trunk/testing/itest/policy/matching/src/test/java/org/apache/tuscany/sca/policy/matching/MatchingTestCase.java
@@ -96,13 +96,8 @@ public class MatchingTestCase {
@Test
public void testSomePoliciesOnOneSideButNoneOnTheOther() throws Exception {
- try {
- HelloWorld helloWorld = node.getService(HelloWorld.class, "HelloWorldClientSomePoliciesOnOneSideButNoneOnTheOther");
- helloWorld.getGreetings("petra");
- fail("Exception expected");
- } catch (Exception ex) {
- assertTrue(ex.getMessage().indexOf("No match because there are policy sets at the endpoint but not at the endpoint reference") > -1);
- }
+ HelloWorld helloWorld = node.getService(HelloWorld.class, "HelloWorldClientSomePoliciesOnOneSideButNoneOnTheOther");
+ assertEquals("Hello petra",helloWorld.getGreetings("petra"));
}
@Test