diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2011-05-18 09:38:01 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2011-05-18 09:38:01 +0000 |
commit | 23bc8ca050d93d3a25f16485181470a9276b2649 (patch) | |
tree | c0bcffd1b1b28378e6080d957c0df5a922aa88f8 /sca-java-2.x/trunk/modules/domain-node/src/test/java/org/apache/tuscany/sca/runtime/TuscanyRuntimeTestCase.java | |
parent | 6924b2029c548cbb27ba28854d466227666b46bb (diff) |
Updates to match the DomainRegistry changes to rename addListener/removeListener to be addEndpointListener/removeEndpointListener as there are now multiple types of listener, and change the running composite methods to use the composite uri instead of its QName
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1124143 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r-- | sca-java-2.x/trunk/modules/domain-node/src/test/java/org/apache/tuscany/sca/runtime/TuscanyRuntimeTestCase.java | 18 |
1 files changed, 9 insertions, 9 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 55d164c56e..4aa50447ad 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 @@ -57,7 +57,7 @@ public class TuscanyRuntimeTestCase { node.installContribution("helloworld", "src/test/resources/sample-helloworld.jar", null, null); node.startComposite("helloworld", "helloworld.composite"); - Map<String, List<QName>> ci = node.getStartedComposites(); + Map<String, List<String>> ci = node.getStartedCompositeURIs(); Assert.assertEquals(1, ci.size()); Helloworld helloworldService = node.getService(Helloworld.class, "HelloworldComponent"); @@ -130,10 +130,10 @@ public class TuscanyRuntimeTestCase { node.installContribution("foo", "src/test/resources/sample-helloworld.jar", null, null); List<String> dcs = node.startDeployables("foo"); Assert.assertEquals(1, dcs.size()); - Map<String, List<QName>> dcsx = node.getStartedComposites(); + Map<String, List<String>> dcsx = node.getStartedCompositeURIs(); Assert.assertEquals(1, dcsx.size()); node.stopComposite("foo", "helloworld.composite"); - dcsx = node.getStartedComposites(); + dcsx = node.getStartedCompositeURIs(); Assert.assertEquals(0, dcsx.size()); } @@ -143,9 +143,9 @@ public class TuscanyRuntimeTestCase { node.installContribution("helloworld", "src/test/resources/sample-helloworld-nodeployable.jar", "src/test/resources/sca-contribution-generated.xml", null); node.startComposite("helloworld", "helloworld.composite"); - Map<String, List<QName>> dcs = node.getStartedComposites(); + Map<String, List<String>> dcs = node.getStartedCompositeURIs(); Assert.assertEquals(1, dcs.size()); - Assert.assertEquals("helloworld", dcs.get("helloworld").get(0).getLocalPart()); + Assert.assertEquals("helloworld.composite", dcs.get("helloworld").get(0)); Helloworld helloworldService = node.getService(Helloworld.class, "HelloworldComponent"); Assert.assertEquals("Hello petra", helloworldService.sayHello("petra")); @@ -163,9 +163,9 @@ public class TuscanyRuntimeTestCase { Node node = TuscanyRuntime.runComposite("helloworld.composite", "src/test/resources/sample-helloworld.jar"); List<String> cs = node.getInstalledContributionURIs(); Assert.assertEquals(1, cs.size()); - Map<String, List<QName>> dcs = node.getStartedComposites(); + Map<String, List<String>> dcs = node.getStartedCompositeURIs(); Assert.assertEquals(1, dcs.size()); - Assert.assertEquals("helloworld", dcs.get("sample-helloworld").get(0).getLocalPart()); + Assert.assertEquals("helloworld.composite", dcs.get("sample-helloworld").get(0)); } @Test @@ -173,9 +173,9 @@ public class TuscanyRuntimeTestCase { Node node = TuscanyRuntime.runComposite(null, "src/test/resources/sample-helloworld.jar"); List<String> cs = node.getInstalledContributionURIs(); Assert.assertEquals(1, cs.size()); - Map<String, List<QName>> dcs = node.getStartedComposites(); + Map<String, List<String>> dcs = node.getStartedCompositeURIs(); Assert.assertEquals(1, dcs.size()); - Assert.assertEquals("helloworld", dcs.get("sample-helloworld").get(0).getLocalPart()); + Assert.assertEquals("helloworld.composite", dcs.get("sample-helloworld").get(0)); } @Test public void testRunComposite() throws NoSuchServiceException { |