diff options
author | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2009-06-23 22:48:13 +0000 |
---|---|---|
committer | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2009-06-23 22:48:13 +0000 |
commit | 90ba7b1a18706b434520d531358619438a43b4f0 (patch) | |
tree | 4c571d7829da8a0df07368ac51292bc07db5526e /java/sca/modules/assembly/src/test | |
parent | 40ddf83655bc926c1babc72ba36a1c658eadb516 (diff) |
Add a QName as the type for binding/implementation and use it to compare model types instead of class
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@787865 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/modules/assembly/src/test')
2 files changed, 9 insertions, 5 deletions
diff --git a/java/sca/modules/assembly/src/test/java/org/apache/tuscany/sca/assembly/TestBinding.java b/java/sca/modules/assembly/src/test/java/org/apache/tuscany/sca/assembly/TestBinding.java index 3a75bbcc36..5380a319d5 100644 --- a/java/sca/modules/assembly/src/test/java/org/apache/tuscany/sca/assembly/TestBinding.java +++ b/java/sca/modules/assembly/src/test/java/org/apache/tuscany/sca/assembly/TestBinding.java @@ -18,16 +18,20 @@ */ package org.apache.tuscany.sca.assembly; -import org.apache.tuscany.sca.assembly.impl.BindingImpl; +import javax.xml.namespace.QName; +import org.apache.tuscany.sca.assembly.impl.BindingImpl; /** * A test interface model. - * + * * @version $Rev$ $Date$ */ public class TestBinding extends BindingImpl implements Binding { + private final static QName TYPE = new QName("http://test", "binding.test"); + public TestBinding(AssemblyFactory factory) { + super(TYPE); } public String getName() { @@ -37,7 +41,7 @@ public class TestBinding extends BindingImpl implements Binding { public String getURI() { return "http://test"; } - + public boolean isUnresolved() { return false; } diff --git a/java/sca/modules/assembly/src/test/java/org/apache/tuscany/sca/assembly/TestImplementation.java b/java/sca/modules/assembly/src/test/java/org/apache/tuscany/sca/assembly/TestImplementation.java index 19702954c9..6777c33ff1 100644 --- a/java/sca/modules/assembly/src/test/java/org/apache/tuscany/sca/assembly/TestImplementation.java +++ b/java/sca/modules/assembly/src/test/java/org/apache/tuscany/sca/assembly/TestImplementation.java @@ -24,12 +24,12 @@ import org.apache.tuscany.sca.assembly.impl.ImplementationImpl; /** * A test component implementation model. - * + * * @version $Rev$ $Date$ */ public class TestImplementation extends ImplementationImpl implements Implementation { public TestImplementation(AssemblyFactory factory) { - + super(new QName("http://test", "implementation.test")); Property p = factory.createProperty(); p.setName("currency"); p.setValue("USD"); |