From 98802478a84a42af4a4bf7c28a815ade993eab6a Mon Sep 17 00:00:00 2001 From: antelder Date: Thu, 28 Jan 2010 18:40:43 +0000 Subject: Change the tuscanyClient scheme to pbe all lower case so it works with the toLowerCase in the DefaultEndpointRegistryFactory, and move all the remote code in the scaclient to happen at invocation time. This now works for multiple local and remote nodes in one or separate JVMs git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@904206 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/test/java/test/scaclient/SCAClientTestCase.java | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'sca-java-2.x/trunk/itest/scaclient-api') diff --git a/sca-java-2.x/trunk/itest/scaclient-api/src/test/java/test/scaclient/SCAClientTestCase.java b/sca-java-2.x/trunk/itest/scaclient-api/src/test/java/test/scaclient/SCAClientTestCase.java index 5e35fa674c..891581ea36 100644 --- a/sca-java-2.x/trunk/itest/scaclient-api/src/test/java/test/scaclient/SCAClientTestCase.java +++ b/sca-java-2.x/trunk/itest/scaclient-api/src/test/java/test/scaclient/SCAClientTestCase.java @@ -27,6 +27,7 @@ import junit.framework.TestCase; import org.apache.tuscany.sca.node.Node; import org.apache.tuscany.sca.node.NodeFactory; +import org.junit.Ignore; import org.junit.Test; import org.oasisopen.sca.client.SCAClientFactory; @@ -58,6 +59,15 @@ public class SCAClientTestCase extends TestCase { assertEquals("Hello petra", service.sayHello("petra")); } +// @Test @Ignore +// public void testHTTPURI() throws Exception { +// node = NodeFactory.getInstance().createNode(URI.create("http://defaultDomain"), new String[] {"target/classes"}); +// node.start(); +// +// HelloworldService service = SCAClientFactory.newInstance(URI.create("http://defaultDomain")).getService(HelloworldService.class, "HelloworldComponent"); +// assertEquals("Hello petra", service.sayHello("petra")); +// } + @Override protected void tearDown() throws Exception { node.stop(); -- cgit v1.2.3