tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From antel...@apache.org
Subject svn commit: r990708 - /tuscany/sca-java-2.x/trunk/itest/scaclient-api-remote/src/test/java/test/scaclient/SCAClientTestCase.java
Date Mon, 30 Aug 2010 07:21:04 GMT
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
         }
     }
 



Mime
View raw message