From af5db50b1aa2d593c7855f2e8687b0df8cf28453 Mon Sep 17 00:00:00 2001 From: antelder Date: Tue, 10 May 2011 11:21:09 +0000 Subject: Finish the hazelcast registry composite serialization to share the composites amoungst nodes git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1101408 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/tuscany/sca/runtime/DomainCompositeTestCase.java | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'sca-java-2.x/trunk/modules/domain-node/src') diff --git a/sca-java-2.x/trunk/modules/domain-node/src/test/java/org/apache/tuscany/sca/runtime/DomainCompositeTestCase.java b/sca-java-2.x/trunk/modules/domain-node/src/test/java/org/apache/tuscany/sca/runtime/DomainCompositeTestCase.java index c3713c0181..97ef2ece70 100644 --- a/sca-java-2.x/trunk/modules/domain-node/src/test/java/org/apache/tuscany/sca/runtime/DomainCompositeTestCase.java +++ b/sca-java-2.x/trunk/modules/domain-node/src/test/java/org/apache/tuscany/sca/runtime/DomainCompositeTestCase.java @@ -32,8 +32,17 @@ import org.oasisopen.sca.NoSuchServiceException; public class DomainCompositeTestCase { @Test - public void testInstallDeployable() throws NoSuchServiceException, NoSuchDomainException, ContributionReadException, ActivationException, ValidationException { - Node node = TuscanyRuntime.newInstance().createNode("default"); + public void localOnlyDomain() throws NoSuchServiceException, NoSuchDomainException, ContributionReadException, ActivationException, ValidationException { + Node node = TuscanyRuntime.newInstance().createNode("DomainCompositeTestCase.localOnlyDomain"); + testIt(node); + } + @Test + public void distributedDomain() throws NoSuchServiceException, NoSuchDomainException, ContributionReadException, ActivationException, ValidationException { + Node node = TuscanyRuntime.newInstance().createNode("uri:DomainCompositeTestCase.distributedDomain"); + testIt(node); + } + + private void testIt(Node node) throws ContributionReadException, ActivationException, ValidationException { node.installContribution("helloworld", "src/test/resources/sample-helloworld.jar", null, null, true); Composite dc = node.getDomainLevelComposite(); -- cgit v1.2.3