summaryrefslogtreecommitdiffstats
path: root/java/sca/itest
diff options
context:
space:
mode:
authorrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2009-05-19 16:49:34 +0000
committerrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2009-05-19 16:49:34 +0000
commit9182bba609947d775130c84f00639d8f0f766e00 (patch)
tree37df0c96f7eab7b98683c16150f8c0bae52b4cb4 /java/sca/itest
parent08ba6e53202a2b2f20dd8ea6e2a315fb80ff818a (diff)
Change the NodeFactoryImpl to be capable of hosting multiple instances of SCA node in the same JVM and align the OSGiNodeFactoryImpl to that feature
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@776383 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/itest')
-rw-r--r--java/sca/itest/scaclient-api/src/test/java/test/scaclient/SCAClientTestCase.java (renamed from java/sca/itest/scaclient-api/src/test/java/SCAClientTestCase.java)12
1 files changed, 9 insertions, 3 deletions
diff --git a/java/sca/itest/scaclient-api/src/test/java/SCAClientTestCase.java b/java/sca/itest/scaclient-api/src/test/java/test/scaclient/SCAClientTestCase.java
index 9978cb07e2..306f690a03 100644
--- a/java/sca/itest/scaclient-api/src/test/java/SCAClientTestCase.java
+++ b/java/sca/itest/scaclient-api/src/test/java/test/scaclient/SCAClientTestCase.java
@@ -1,6 +1,9 @@
-import java.net.URI;
+package test.scaclient;
import itest.HelloworldService;
+
+import java.net.URI;
+
import junit.framework.TestCase;
import org.apache.tuscany.sca.node.Node;
@@ -9,7 +12,7 @@ import org.oasisopen.sca.client.SCAClientFactory;
/**
* Test SCADomain.newInstance and invocation of a service.
- *
+ *
* @version $Rev$ $Date$
*/
public class SCAClientTestCase extends TestCase {
@@ -23,7 +26,10 @@ public class SCAClientTestCase extends TestCase {
}
public void testInvoke() throws Exception {
- HelloworldService service = SCAClientFactory.newInstance().getService(HelloworldService.class, "HelloworldComponent", URI.create("default"));
+ HelloworldService service =
+ SCAClientFactory.newInstance().getService(HelloworldService.class,
+ "HelloworldComponent",
+ URI.create(Node.DEFAULT_DOMAIN_URI));
assertEquals("Hello petra", service.sayHello("petra"));
}