diff options
Diffstat (limited to 'sca-java-2.x/trunk/itest/scaclient-api-remote')
-rw-r--r-- | sca-java-2.x/trunk/itest/scaclient-api-remote/src/test/java/test/scaclient/SCAClientTestCase.java | 6 |
1 files changed, 2 insertions, 4 deletions
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
}
}
|