From d0fe56f33469dcebe9507f9efad67c13331087fd Mon Sep 17 00:00:00 2001 From: antelder Date: Mon, 30 Aug 2010 07:21:03 +0000 Subject: Update for SCAClientFactory NoSuchDomainException changes git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@990708 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/test/java/test/scaclient/SCAClientTestCase.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'sca-java-2.x/trunk/itest/scaclient-api-remote') diff --git a/sca-java-2.x/trunk/itest/scaclient-api-remote/src/test/java/test/scaclient/SCAClientTestCase.java b/sca-java-2.x/trunk/itest/scaclient-api-remote/src/test/java/test/scaclient/SCAClientTestCase.java index 0ae70d6c3f..6dab4d3525 100644 --- a/sca-java-2.x/trunk/itest/scaclient-api-remote/src/test/java/test/scaclient/SCAClientTestCase.java +++ b/sca-java-2.x/trunk/itest/scaclient-api-remote/src/test/java/test/scaclient/SCAClientTestCase.java @@ -73,10 +73,8 @@ public class SCAClientTestCase { service = SCAClientFactory.newInstance(URI.create("nosuchdomain")).getService(HelloworldService.class, "HelloworldComponent"); service.sayHello("petra"); fail(); - } catch (Exception e) { - if (!(e.getCause() instanceof NoSuchDomainException)) { - throw e; - } + } catch (NoSuchDomainException e) { + //expected } } -- cgit v1.2.3