You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by an...@apache.org on 2010/08/30 09:21:04 UTC
svn commit: r990708 -
/tuscany/sca-java-2.x/trunk/itest/scaclient-api-remote/src/test/java/test/scaclient/SCAClientTestCase.java
Author: antelder
Date: Mon Aug 30 07:21:03 2010
New Revision: 990708
URL: http://svn.apache.org/viewvc?rev=990708&view=rev
Log:
Update for SCAClientFactory NoSuchDomainException changes
Modified:
tuscany/sca-java-2.x/trunk/itest/scaclient-api-remote/src/test/java/test/scaclient/SCAClientTestCase.java
Modified: tuscany/sca-java-2.x/trunk/itest/scaclient-api-remote/src/test/java/test/scaclient/SCAClientTestCase.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/itest/scaclient-api-remote/src/test/java/test/scaclient/SCAClientTestCase.java?rev=990708&r1=990707&r2=990708&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/itest/scaclient-api-remote/src/test/java/test/scaclient/SCAClientTestCase.java (original)
+++ tuscany/sca-java-2.x/trunk/itest/scaclient-api-remote/src/test/java/test/scaclient/SCAClientTestCase.java Mon Aug 30 07:21:03 2010
@@ -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
}
}