diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2009-07-04 10:31:27 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2009-07-04 10:31:27 +0000 |
commit | 65bb8eb02b9a717941587535242f70dfd82fe8dd (patch) | |
tree | a661b1809bad5feafa4fad589fded9c1819eb4d9 /java/sca/itest | |
parent | 1368d6b67b2b8095356cf5a9c848b161b609ce29 (diff) |
Update node tests for latest sca client api's
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@791099 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/itest')
-rw-r--r-- | java/sca/itest/nodes/two-nodes-test/src/test/java/itest/ClientNode.java | 6 | ||||
-rw-r--r-- | java/sca/itest/nodes/two-nodes-test/src/test/java/itest/TwoNodesTestCase.java | 6 |
2 files changed, 4 insertions, 8 deletions
diff --git a/java/sca/itest/nodes/two-nodes-test/src/test/java/itest/ClientNode.java b/java/sca/itest/nodes/two-nodes-test/src/test/java/itest/ClientNode.java index 67dc63861f..076c119335 100644 --- a/java/sca/itest/nodes/two-nodes-test/src/test/java/itest/ClientNode.java +++ b/java/sca/itest/nodes/two-nodes-test/src/test/java/itest/ClientNode.java @@ -35,7 +35,6 @@ import org.junit.BeforeClass; import org.junit.Ignore;
import org.junit.Test;
import org.oasisopen.sca.client.SCAClient;
-import org.oasisopen.sca.client.SCAClientFactory;
/**
* This shows how to test the Calculator service component.
@@ -72,12 +71,11 @@ public class ClientNode { @Test
@Ignore("SCAClient needs to leverage the EndpointRegistry to invoke services that are not hosted on the local node")
public void testCalculatorClientAPI() throws Exception {
- SCAClient scaClient = SCAClientFactory.newInstance();
- Helloworld service = scaClient.getService(Helloworld.class, "HelloworldService", null);
+ Helloworld service = SCAClient.getService(Helloworld.class, "HelloworldService");
assertNotNull(service);
assertEquals("Hello Petra", service.sayHello("Petra"));
- Helloworld client = scaClient.getService(Helloworld.class, "HelloworldClient", null);
+ Helloworld client = SCAClient.getService(Helloworld.class, "HelloworldClient");
assertNotNull(client);
assertEquals("Hi Hello Petra", client.sayHello("Petra"));
}
diff --git a/java/sca/itest/nodes/two-nodes-test/src/test/java/itest/TwoNodesTestCase.java b/java/sca/itest/nodes/two-nodes-test/src/test/java/itest/TwoNodesTestCase.java index f1b3af82a0..8c97bb9d81 100644 --- a/java/sca/itest/nodes/two-nodes-test/src/test/java/itest/TwoNodesTestCase.java +++ b/java/sca/itest/nodes/two-nodes-test/src/test/java/itest/TwoNodesTestCase.java @@ -32,7 +32,6 @@ import org.junit.AfterClass; import org.junit.BeforeClass;
import org.junit.Test;
import org.oasisopen.sca.client.SCAClient;
-import org.oasisopen.sca.client.SCAClientFactory;
/**
* This shows how to test the Calculator service component.
@@ -85,12 +84,11 @@ public class TwoNodesTestCase { @Test
public void testCalculatorClientAPI() throws Exception {
- SCAClient scaClient = SCAClientFactory.newInstance();
- Helloworld service = scaClient.getService(Helloworld.class, "HelloworldService", null);
+ Helloworld service = SCAClient.getService(Helloworld.class, "HelloworldService");
assertNotNull(service);
assertEquals("Hello Petra", service.sayHello("Petra"));
- Helloworld client = scaClient.getService(Helloworld.class, "HelloworldClient", null);
+ Helloworld client = SCAClient.getService(Helloworld.class, "HelloworldClient");
assertNotNull(client);
assertEquals("Hi Hello Petra", client.sayHello("Petra"));
}
|