summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--java/sca/itest/scaclient-api/src/test/java/test/scaclient/SCAClientTestCase.java13
1 files changed, 7 insertions, 6 deletions
diff --git a/java/sca/itest/scaclient-api/src/test/java/test/scaclient/SCAClientTestCase.java b/java/sca/itest/scaclient-api/src/test/java/test/scaclient/SCAClientTestCase.java
index f8c0d9034e..a331e4dd22 100644
--- a/java/sca/itest/scaclient-api/src/test/java/test/scaclient/SCAClientTestCase.java
+++ b/java/sca/itest/scaclient-api/src/test/java/test/scaclient/SCAClientTestCase.java
@@ -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 class SCAClientTestCase extends TestCase {
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"));
}