From 2e161ecda344817824deaa0679da34425bb93886 Mon Sep 17 00:00:00 2001 From: antelder Date: Wed, 2 Jun 2010 12:43:09 +0000 Subject: Change test to use local loop back address to avoid any network issues git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@950539 13f79535-47bb-0310-9956-ffa450edef68 --- .../tuscany/sca/binding/hazelcast/HazelcastBindingTestCase.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'sca-java-2.x/trunk/modules/binding-hazelcast-runtime') diff --git a/sca-java-2.x/trunk/modules/binding-hazelcast-runtime/src/test/java/org/apache/tuscany/sca/binding/hazelcast/HazelcastBindingTestCase.java b/sca-java-2.x/trunk/modules/binding-hazelcast-runtime/src/test/java/org/apache/tuscany/sca/binding/hazelcast/HazelcastBindingTestCase.java index b6760f0902..1183ae9732 100644 --- a/sca-java-2.x/trunk/modules/binding-hazelcast-runtime/src/test/java/org/apache/tuscany/sca/binding/hazelcast/HazelcastBindingTestCase.java +++ b/sca-java-2.x/trunk/modules/binding-hazelcast-runtime/src/test/java/org/apache/tuscany/sca/binding/hazelcast/HazelcastBindingTestCase.java @@ -23,8 +23,6 @@ import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.fail; -import java.net.URI; - import org.apache.tuscany.sca.node.Node; import org.apache.tuscany.sca.node.NodeFactory; import org.junit.AfterClass; @@ -40,15 +38,15 @@ public class HazelcastBindingTestCase { @BeforeClass public static void setUpBeforeClass() throws Exception { // Note use of NodeFactory.newInstance() so as to start separate runtimes - serviceNode = NodeFactory.newInstance().createNode(URI.create("tuscany:HazelcastBindingTestCase"), "service.composite", new String[]{"target/test-classes"}); + serviceNode = NodeFactory.newInstance("uri:HazelcastBindingTestCase?bind=127.0.0.1").createNode("service.composite", new String[]{"target/test-classes"}); serviceNode.start(); - clientNode = NodeFactory.newInstance().createNode(URI.create("tuscany:HazelcastBindingTestCase"), "client.composite", new String[]{"target/test-classes"}); + clientNode = NodeFactory.newInstance("uri:HazelcastBindingTestCase?bind=127.0.0.1").createNode("client.composite", new String[]{"target/test-classes"}); clientNode.start(); } @Test public void testNestedClient() throws Exception { - Node client2Node = NodeFactory.newInstance().createNode(URI.create("tuscany:HazelcastBindingTestCase"), "client2.composite", new String[]{"target/test-classes"}); + Node client2Node = NodeFactory.newInstance("uri:HazelcastBindingTestCase?bind=127.0.0.1").createNode("client2.composite", new String[]{"target/test-classes"}); client2Node.start(); TestService service = client2Node.getService(TestService.class, "TestServiceClient2"); assertNotNull(service); -- cgit v1.2.3