diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2011-05-09 20:27:03 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2011-05-09 20:27:03 +0000 |
commit | 99490e913ff81fd269a6f5e64494f6a0c4a63e80 (patch) | |
tree | 1d02ed42dd5961c0199e8d7e60009c4e0806bd28 /sca-java-2.x/trunk/modules/domain-hazelcast/src/test | |
parent | 1b830fd16cde7f5c8645e530d68f12faa0607853 (diff) |
Update hazelcast registry to store and use the wsdl interface contract for endpoints in the domain so that remote endpoints include the interface information
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1101207 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/domain-hazelcast/src/test')
-rw-r--r-- | sca-java-2.x/trunk/modules/domain-hazelcast/src/test/java/org/apache/tuscany/sca/endpoint/hazelcast/MultiRegTestCase.java | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/sca-java-2.x/trunk/modules/domain-hazelcast/src/test/java/org/apache/tuscany/sca/endpoint/hazelcast/MultiRegTestCase.java b/sca-java-2.x/trunk/modules/domain-hazelcast/src/test/java/org/apache/tuscany/sca/endpoint/hazelcast/MultiRegTestCase.java index c4f51d1675..dcdf1a94e0 100644 --- a/sca-java-2.x/trunk/modules/domain-hazelcast/src/test/java/org/apache/tuscany/sca/endpoint/hazelcast/MultiRegTestCase.java +++ b/sca-java-2.x/trunk/modules/domain-hazelcast/src/test/java/org/apache/tuscany/sca/endpoint/hazelcast/MultiRegTestCase.java @@ -30,6 +30,9 @@ import org.apache.tuscany.sca.core.DefaultExtensionPointRegistry; import org.apache.tuscany.sca.core.ExtensionPointRegistry; import org.apache.tuscany.sca.core.FactoryExtensionPoint; import org.apache.tuscany.sca.core.UtilityExtensionPoint; +import org.apache.tuscany.sca.interfacedef.Interface; +import org.apache.tuscany.sca.interfacedef.InterfaceContract; +import org.apache.tuscany.sca.interfacedef.java.JavaInterfaceContract; import org.apache.tuscany.sca.runtime.RuntimeEndpoint; import org.apache.tuscany.sca.runtime.RuntimeProperties; import org.junit.Assert; @@ -154,10 +157,61 @@ public class MultiRegTestCase { Component comp = assemblyFactory.createComponent(); ep.setComponent(comp); ep.setService(assemblyFactory.createComponentService()); + ep.getService().setInterfaceContract(getIC()); Binding b = scaBindingFactory.createSCABinding(); ep.setBinding(b); ep.setURI(uri); return ep; } + + private InterfaceContract getIC() { + InterfaceContract ic = new JavaInterfaceContract(){ + + public Object clone() throws CloneNotSupportedException { + return null; + } + @Override + public Interface getInterface() { + // TODO Auto-generated method stub + return null; + } + + @Override + public void setInterface(Interface callInterface) { + // TODO Auto-generated method stub + + } + + @Override + public Interface getCallbackInterface() { + // TODO Auto-generated method stub + return null; + } + + @Override + public void setCallbackInterface(Interface callbackInterface) { + // TODO Auto-generated method stub + + } + + @Override + public InterfaceContract makeUnidirectional(boolean isCallback) { + // TODO Auto-generated method stub + return null; + } + + @Override + public InterfaceContract getNormalizedWSDLContract() { + // TODO Auto-generated method stub + return null; + } + + @Override + public void setNormailizedWSDLContract(InterfaceContract wsdlInterfaceContract) { + // TODO Auto-generated method stub + + }}; + return ic; + } } |