diff options
author | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2009-10-20 23:30:48 +0000 |
---|---|---|
committer | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2009-10-20 23:30:48 +0000 |
commit | ad93ebea59fa455d4fb0bc5771f7a9548790b171 (patch) | |
tree | f0eb1bbb04daff9fb87f38885672207d1e63066d /java/sca/modules/assembly/src/test | |
parent | c53bddb7cd7eb1f06a3a8a4f43e590b5cea28aa1 (diff) |
Remove constrainingType as it is now not part of the OASIS SCA specs
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@827835 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/modules/assembly/src/test')
-rw-r--r-- | java/sca/modules/assembly/src/test/java/org/apache/tuscany/sca/assembly/AssemblyFactoryTestCase.java | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/java/sca/modules/assembly/src/test/java/org/apache/tuscany/sca/assembly/AssemblyFactoryTestCase.java b/java/sca/modules/assembly/src/test/java/org/apache/tuscany/sca/assembly/AssemblyFactoryTestCase.java index e58904cf00..20fd74d46e 100644 --- a/java/sca/modules/assembly/src/test/java/org/apache/tuscany/sca/assembly/AssemblyFactoryTestCase.java +++ b/java/sca/modules/assembly/src/test/java/org/apache/tuscany/sca/assembly/AssemblyFactoryTestCase.java @@ -52,11 +52,6 @@ public class AssemblyFactoryTestCase { createComposite(); } - @Test - public void testCreateConstrainingType() { - createConstrainingType(); - } - /** * Create a composite */ @@ -97,9 +92,6 @@ public class AssemblyFactoryTestCase { Component c = assemblyFactory.createComponent(); c.setName(name); - ConstrainingType constraint = createConstrainingType(); - c.setConstrainingType(constraint); - Implementation i = new TestImplementation(assemblyFactory); c.setImplementation(i); @@ -175,39 +167,4 @@ public class AssemblyFactoryTestCase { return ctype; } - /** - * Create a new constraining type - * - * @return - */ - ConstrainingType createConstrainingType() { - ConstrainingType ctype = assemblyFactory.createConstrainingType(); - - AbstractProperty p = assemblyFactory.createAbstractProperty(); - p.setName("currency"); - p.setValue("USD"); - p.setMustSupply(true); - p.setXSDType(new QName("", "")); - ctype.getProperties().add(p); - - AbstractReference ref1 = assemblyFactory.createAbstractReference(); - ref1.setName("accountDataService"); - ref1.setInterfaceContract(new TestInterfaceContract(assemblyFactory)); - ref1.setMultiplicity(Multiplicity.ONE_ONE); - ctype.getReferences().add(ref1); - - AbstractReference ref2 = assemblyFactory.createAbstractReference(); - ref2.setName("stockQuoteService"); - ref2.setInterfaceContract(new TestInterfaceContract(assemblyFactory)); - ref2.setMultiplicity(Multiplicity.ONE_ONE); - ctype.getReferences().add(ref2); - - AbstractService s = assemblyFactory.createAbstractService(); - s.setName("AccountService"); - s.setInterfaceContract(new TestInterfaceContract(assemblyFactory)); - ctype.getServices().add(s); - - return ctype; - } - } |