From e785933e664b4665f7f9f5c959adb5a496e4552e Mon Sep 17 00:00:00 2001 From: antelder Date: Wed, 26 Aug 2009 11:50:10 +0000 Subject: Update test for removing a contribution so that the test actually works git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@807968 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/tuscany/sca/node/OneNodeTestCase.java | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'java/sca/modules') diff --git a/java/sca/modules/domain-node/src/test/java/org/apache/tuscany/sca/node/OneNodeTestCase.java b/java/sca/modules/domain-node/src/test/java/org/apache/tuscany/sca/node/OneNodeTestCase.java index d36734875b..e3938f2044 100644 --- a/java/sca/modules/domain-node/src/test/java/org/apache/tuscany/sca/node/OneNodeTestCase.java +++ b/java/sca/modules/domain-node/src/test/java/org/apache/tuscany/sca/node/OneNodeTestCase.java @@ -28,6 +28,7 @@ import org.junit.AfterClass; import org.junit.BeforeClass; import org.junit.Test; import org.oasisopen.sca.NoSuchDomainException; +import org.oasisopen.sca.NoSuchServiceException; import org.oasisopen.sca.client.SCAClient; /** @@ -56,9 +57,13 @@ public class OneNodeTestCase{ assertNotNull(client); assertEquals("Hi Hello Petra", client.sayHello("Petra")); - // FIXME: this should give a service not found as the service contribution has been removed - // domain.removeContribution(serviceContributionUri); - // assertEquals("Hi Hello Petra", client.sayHello("Petra")); + domain.removeContribution(serviceContributionUri); + try { + client = SCAClient.getService(Helloworld.class, "defaultDomain/HelloworldService"); + // FIXME: should this be NoSuchServiceException or ServiceNotFoundException? + } catch (NoSuchServiceException e) { + // expected + } domain.stop(); try { -- cgit v1.2.3