diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2011-05-07 07:32:55 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2011-05-07 07:32:55 +0000 |
commit | a871befa60fe48f8e699dc68ae910eb6c4b612a6 (patch) | |
tree | 232e7374f1f56a61d7644199de02f6147f498ea8 /sca-java-2.x/trunk/modules/domain-node/src/test | |
parent | 7ead2c21b4dcecefb3703f881b5904a3f8bbc325 (diff) |
Update to support setting the domain uri in the runComposite method
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1100473 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/domain-node/src/test')
-rw-r--r-- | sca-java-2.x/trunk/modules/domain-node/src/test/java/org/apache/tuscany/sca/runtime/TuscanyRuntimeTestCase.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sca-java-2.x/trunk/modules/domain-node/src/test/java/org/apache/tuscany/sca/runtime/TuscanyRuntimeTestCase.java b/sca-java-2.x/trunk/modules/domain-node/src/test/java/org/apache/tuscany/sca/runtime/TuscanyRuntimeTestCase.java index d588f91d6a..99f51a2604 100644 --- a/sca-java-2.x/trunk/modules/domain-node/src/test/java/org/apache/tuscany/sca/runtime/TuscanyRuntimeTestCase.java +++ b/sca-java-2.x/trunk/modules/domain-node/src/test/java/org/apache/tuscany/sca/runtime/TuscanyRuntimeTestCase.java @@ -19,6 +19,7 @@ package org.apache.tuscany.sca.runtime; import java.net.MalformedURLException; +import java.net.URI; import java.util.List; import junit.framework.Assert; @@ -175,14 +176,12 @@ public class TuscanyRuntimeTestCase { @Test public void testRunCompositeSharedRuntime() throws NoSuchServiceException { - TuscanyRuntime runtime = TuscanyRuntime.newInstance(); - Node node = TuscanyRuntime.runComposite(runtime, "helloworld.composite", "src/test/resources/sample-helloworld.jar"); + Node node = TuscanyRuntime.runComposite(URI.create("default"), "helloworld.composite", "src/test/resources/sample-helloworld.jar"); try { Helloworld helloworldService = node.getService(Helloworld.class, "HelloworldComponent"); Assert.assertEquals("Hello petra", helloworldService.sayHello("petra")); } finally { node.stop(); } - runtime.stop(); } } |