summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/modules/binding-hazelcast-runtime/src/test/java/org
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2010-06-02 12:43:09 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2010-06-02 12:43:09 +0000
commit2e161ecda344817824deaa0679da34425bb93886 (patch)
treeaa76e64001464aade3df075277138008bc56bf01 /sca-java-2.x/trunk/modules/binding-hazelcast-runtime/src/test/java/org
parent6d2e8a8329a015ad66e65994a39ad0ba970e37cd (diff)
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
Diffstat (limited to 'sca-java-2.x/trunk/modules/binding-hazelcast-runtime/src/test/java/org')
-rw-r--r--sca-java-2.x/trunk/modules/binding-hazelcast-runtime/src/test/java/org/apache/tuscany/sca/binding/hazelcast/HazelcastBindingTestCase.java8
1 files changed, 3 insertions, 5 deletions
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);