From cd0530f3d5222a020ac1ffae2956018402d36adf Mon Sep 17 00:00:00 2001 From: slaws Date: Wed, 19 Oct 2011 08:37:03 +0000 Subject: Add code to read elements from WSDL and enable the test that ensure that mayProvides intents are matched between references and services. This has implications for existing tests in that we now have to ensure that any mayProvides intent that is considered to be the default (a concept that the spec doesn't consider) is present in the intent list for the policy subject in question. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1186027 13f79535-47bb-0310-9956-ffa450edef68 --- .../tuscany/sca/core/runtime/impl/EndpointReferenceBinderImpl.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sca-java-2.x/trunk/modules/core/src/main') diff --git a/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/runtime/impl/EndpointReferenceBinderImpl.java b/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/runtime/impl/EndpointReferenceBinderImpl.java index ea8d7aba9c..b0be5cb3e8 100644 --- a/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/runtime/impl/EndpointReferenceBinderImpl.java +++ b/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/runtime/impl/EndpointReferenceBinderImpl.java @@ -822,7 +822,7 @@ public class EndpointReferenceBinderImpl implements EndpointReferenceBinder { } // TUSCANY-3959 - something that's not explicitly stated in the spec. mayProvides intents don't - // don't lead to policy sets as the binding natively implements the intent. So + // lead to policy sets as the binding natively implements the intent. So // we need to check that these intents match explicitly between reference and service // sides if (eprMayProvideInterationIntents.size() > 0){ @@ -838,8 +838,7 @@ public class EndpointReferenceBinderImpl implements EndpointReferenceBinder { if (!match){ matchAudit.append("No match because the reference has a mayProvide intent that the service doesn't have " + eprIntent.getName()); matchAudit.appendSeperator(); - // Causing POL 4031 to fail - //return false; + return false; } } } -- cgit v1.2.3