diff options
author | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2010-02-19 23:38:00 +0000 |
---|---|---|
committer | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2010-02-19 23:38:00 +0000 |
commit | 45608ba818d35c57fdd0b00a4b1904a680fbf55f (patch) | |
tree | a493afce1740cd63b1cabb8fb2e025adf0f1f353 /sca-java-2.x/trunk/modules/assembly/src/test/java | |
parent | fbc0426ecc97bb64a0db5b2565395a800679ff0b (diff) |
Align the interfaceContractMapper to the spec
Remove the conversation related legacy code
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@912034 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/assembly/src/test/java')
-rw-r--r-- | sca-java-2.x/trunk/modules/assembly/src/test/java/org/apache/tuscany/sca/interfacedef/impl/ContractCompatibilityTestCase.java | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/sca-java-2.x/trunk/modules/assembly/src/test/java/org/apache/tuscany/sca/interfacedef/impl/ContractCompatibilityTestCase.java b/sca-java-2.x/trunk/modules/assembly/src/test/java/org/apache/tuscany/sca/interfacedef/impl/ContractCompatibilityTestCase.java index acdaae799e..603d393e5c 100644 --- a/sca-java-2.x/trunk/modules/assembly/src/test/java/org/apache/tuscany/sca/interfacedef/impl/ContractCompatibilityTestCase.java +++ b/sca-java-2.x/trunk/modules/assembly/src/test/java/org/apache/tuscany/sca/interfacedef/impl/ContractCompatibilityTestCase.java @@ -29,6 +29,7 @@ import java.util.Map; import org.apache.tuscany.sca.core.DefaultExtensionPointRegistry; import org.apache.tuscany.sca.core.ExtensionPointRegistry; import org.apache.tuscany.sca.core.UtilityExtensionPoint; +import org.apache.tuscany.sca.interfacedef.Compatibility; import org.apache.tuscany.sca.interfacedef.DataType; import org.apache.tuscany.sca.interfacedef.IncompatibleInterfaceContractException; import org.apache.tuscany.sca.interfacedef.Interface; @@ -58,7 +59,7 @@ public class ContractCompatibilityTestCase { public void testNoOperation() throws Exception { InterfaceContract source = new MockContract("FooContract"); InterfaceContract target = new MockContract("FooContract"); - mapper.checkCompatibility(source, target, false, false); + mapper.checkCompatibility(source, target, Compatibility.SUBSET, false, false); } @Test @@ -73,7 +74,7 @@ public class ContractCompatibilityTestCase { Map<String, Operation> targetOperations = new HashMap<String, Operation>(); targetOperations.put("op1", opSource2); target.getInterface().getOperations().addAll(targetOperations.values()); - mapper.checkCompatibility(source, target, false, false); + mapper.checkCompatibility(source, target, Compatibility.SUBSET, false, false); } @Test @@ -89,7 +90,7 @@ public class ContractCompatibilityTestCase { targetOperations.put("op2", opSource2); target.getInterface().getOperations().addAll(targetOperations.values()); try { - mapper.checkCompatibility(source, target, false, false); + mapper.checkCompatibility(source, target, Compatibility.SUBSET, false, false); fail(); } catch (IncompatibleInterfaceContractException e) { // expected @@ -118,7 +119,7 @@ public class ContractCompatibilityTestCase { Map<String, Operation> targetOperations = new HashMap<String, Operation>(); targetOperations.put("op1", opTarget); target.getInterface().getOperations().addAll(targetOperations.values()); - mapper.checkCompatibility(source, target, false, false); + mapper.checkCompatibility(source, target, Compatibility.SUBSET, false, false); } @Test @@ -144,7 +145,7 @@ public class ContractCompatibilityTestCase { targetOperations.put("op1", opTarget); target.getInterface().getOperations().addAll(targetOperations.values()); try { - mapper.checkCompatibility(source, target, false, false); + mapper.checkCompatibility(source, target, Compatibility.SUBSET, false, false); fail(); } catch (IncompatibleInterfaceContractException e) { // expected @@ -202,7 +203,7 @@ public class ContractCompatibilityTestCase { Map<String, Operation> targetOperations = new HashMap<String, Operation>(); targetOperations.put("op1", opTarget); target.getInterface().getOperations().addAll(targetOperations.values()); - mapper.checkCompatibility(source, target, false, false); + mapper.checkCompatibility(source, target, Compatibility.SUBSET, false, false); } /** @@ -250,7 +251,7 @@ public class ContractCompatibilityTestCase { targetOperations.put("op1", opTarget); target.getInterface().getOperations().addAll(targetOperations.values()); try { - mapper.checkCompatibility(source, target, false, false); + mapper.checkCompatibility(source, target, Compatibility.SUBSET, false, false); fail(); } catch (IncompatibleInterfaceContractException e) { // expected @@ -279,7 +280,7 @@ public class ContractCompatibilityTestCase { Map<String, Operation> targetOperations = new HashMap<String, Operation>(); targetOperations.put("op1", opTarget); target.getInterface().getOperations().addAll(targetOperations.values()); - mapper.checkCompatibility(source, target, false, false); + mapper.checkCompatibility(source, target, Compatibility.SUBSET, false, false); } @Test @@ -299,7 +300,7 @@ public class ContractCompatibilityTestCase { Map<String, Operation> targetOperations = new HashMap<String, Operation>(); targetOperations.put("op1", opTarget); target.getInterface().getOperations().addAll(targetOperations.values()); - mapper.checkCompatibility(source, target, false, false); + mapper.checkCompatibility(source, target, Compatibility.SUBSET, false, false); } /** |