diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2010-08-30 07:19:14 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2010-08-30 07:19:14 +0000 |
commit | df5e4a5691052ed2a829b9e34fb80a4db10d3a75 (patch) | |
tree | 5f032993bf3ef5bf4927f9db1a9b9f8693409de3 /sca-java-2.x/trunk/itest | |
parent | 391acfda2708ef17264b8d5dcb981af507e493df (diff) |
Update for SCAClientFactory NoSuchDomainException changes
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@990707 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r-- | sca-java-2.x/trunk/itest/scaclient-api/src/test/java/test/scaclient/SCAClientTestCase.java | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/sca-java-2.x/trunk/itest/scaclient-api/src/test/java/test/scaclient/SCAClientTestCase.java b/sca-java-2.x/trunk/itest/scaclient-api/src/test/java/test/scaclient/SCAClientTestCase.java index 6a639661cf..c64350eb2a 100644 --- a/sca-java-2.x/trunk/itest/scaclient-api/src/test/java/test/scaclient/SCAClientTestCase.java +++ b/sca-java-2.x/trunk/itest/scaclient-api/src/test/java/test/scaclient/SCAClientTestCase.java @@ -100,15 +100,11 @@ public class SCAClientTestCase extends TestCase { node = NodeFactory.getInstance().createNode(URI.create("myFooDomain"), new String[] {"target/classes"}); node.start(); - SCAClientFactory clientFactory = SCAClientFactory.newInstance(URI.create("someBadDomainName")); try { - HelloworldService service = clientFactory.getService(HelloworldService.class, "HelloworldComponent/foo"); - service.sayHello("petra"); + SCAClientFactory clientFactory = SCAClientFactory.newInstance(URI.create("someBadDomainName")); fail(); - } catch (Exception e) { - if (!(e.getCause() instanceof NoSuchDomainException)) { - throw e; - } + } catch (NoSuchDomainException e) { + // expected } } |