From 4aa34520512ece1631d4cfc62ab10ec1a54ce9c2 Mon Sep 17 00:00:00 2001 From: slaws Date: Tue, 12 Oct 2010 12:20:01 +0000 Subject: Set domain name for node as 9016 tests for this domain name git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1021755 13f79535-47bb-0310-9956-ffa450edef68 --- .../tjava/org/apache/tuscany/sca/otest/TuscanyRuntimeBridge.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'otest/newlayout/tuscany-java-caa-test-runner/src/test/tjava/org') diff --git a/otest/newlayout/tuscany-java-caa-test-runner/src/test/tjava/org/apache/tuscany/sca/otest/TuscanyRuntimeBridge.java b/otest/newlayout/tuscany-java-caa-test-runner/src/test/tjava/org/apache/tuscany/sca/otest/TuscanyRuntimeBridge.java index 139e8b31fd..202172adfb 100644 --- a/otest/newlayout/tuscany-java-caa-test-runner/src/test/tjava/org/apache/tuscany/sca/otest/TuscanyRuntimeBridge.java +++ b/otest/newlayout/tuscany-java-caa-test-runner/src/test/tjava/org/apache/tuscany/sca/otest/TuscanyRuntimeBridge.java @@ -30,6 +30,8 @@ import java.util.Properties; import org.apache.tuscany.sca.node.Contribution; import org.apache.tuscany.sca.node.Node; import org.apache.tuscany.sca.node.NodeFactory; +import org.apache.tuscany.sca.node.configuration.NodeConfiguration; +import org.apache.tuscany.sca.node.impl.NodeImpl; import testClient.TestException_Exception; import client.RuntimeBridge; @@ -67,8 +69,13 @@ public class TuscanyRuntimeBridge implements RuntimeBridge { for (int i = 0; i < contributions.length; i++) { contributions[i] = new Contribution(contributionNames[i], contributionURIs[i]); } // end for - + node = launcher.createNode(compositeName, contributions); + + // Set the domain URI for the node as JCA_9016 tests for this domain name + NodeConfiguration nodeConfiguration = ((NodeImpl)node).getConfiguration(); + nodeConfiguration.setDomainURI("http://Domain1"); + // Start the node node.start(); -- cgit v1.2.3