tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From antel...@apache.org
Subject svn commit: r990707 - /tuscany/sca-java-2.x/trunk/itest/scaclient-api/src/test/java/test/scaclient/SCAClientTestCase.java
Date Mon, 30 Aug 2010 07:19:14 GMT
Author: antelder
Date: Mon Aug 30 07:19:14 2010
New Revision: 990707

URL: http://svn.apache.org/viewvc?rev=990707&view=rev
Log:
Update for SCAClientFactory NoSuchDomainException changes

Modified:
    tuscany/sca-java-2.x/trunk/itest/scaclient-api/src/test/java/test/scaclient/SCAClientTestCase.java

Modified: tuscany/sca-java-2.x/trunk/itest/scaclient-api/src/test/java/test/scaclient/SCAClientTestCase.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/itest/scaclient-api/src/test/java/test/scaclient/SCAClientTestCase.java?rev=990707&r1=990706&r2=990707&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/itest/scaclient-api/src/test/java/test/scaclient/SCAClientTestCase.java
(original)
+++ tuscany/sca-java-2.x/trunk/itest/scaclient-api/src/test/java/test/scaclient/SCAClientTestCase.java
Mon Aug 30 07:19:14 2010
@@ -100,15 +100,11 @@ public class SCAClientTestCase extends T
         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
         }
     }
     



Mime
View raw message