Author: antelder
Date: Fri Jul  3 16:21:31 2009
New Revision: 790962

URL: http://svn.apache.org/viewvc?rev=790962&view=rev
Log:
Start bringing up the client api to the recent proposals

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

Modified: 
tuscany/java/sca/itest/scaclient-api/src/test/java/test/scaclient/SCAClientTestCase.java
URL: 
http://svn.apache.org/viewvc/tuscany/java/sca/itest/scaclient-api/src/test/java/test/scaclient/SCAClientTestCase.java?rev=790962&r1=790961&r2=790962&view=diff
==============================================================================
--- 
tuscany/java/sca/itest/scaclient-api/src/test/java/test/scaclient/SCAClientTestCase.java
 (original)
+++ 
tuscany/java/sca/itest/scaclient-api/src/test/java/test/scaclient/SCAClientTestCase.java
 Fri Jul  3 16:21:31 2009
@@ -20,13 +20,11 @@
 package test.scaclient;
 
 import itest.HelloworldService;
-
-import java.net.URI;
-
 import junit.framework.TestCase;
 
 import org.apache.tuscany.sca.node.Node;
 import org.apache.tuscany.sca.node.NodeFactory;
+import org.oasisopen.sca.client.SCAClient;
 import org.oasisopen.sca.client.SCAClientFactory;
 
 /**
@@ -46,9 +44,12 @@
 
     public void testInvoke() throws Exception {
         HelloworldService service =
-            SCAClientFactory.newInstance().getService(HelloworldService.class,
-                                                      "HelloworldComponent",
-                                                      
URI.create(Node.DEFAULT_DOMAIN_URI));
+            
SCAClientFactory.newInstance(null).getService(HelloworldService.class, 
"HelloworldComponent");
+        assertEquals("Hello petra", service.sayHello("petra"));
+    }
+
+    public void testSimpleAPI() throws Exception {
+        HelloworldService service = 
SCAClient.getService(HelloworldService.class, "/HelloworldComponent");
         assertEquals("Hello petra", service.sayHello("petra"));
     }
 


Reply via email to