You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by an...@apache.org on 2010/06/02 14:43:09 UTC

svn commit: r950539 - /tuscany/sca-java-2.x/trunk/modules/binding-hazelcast-runtime/src/test/java/org/apache/tuscany/sca/binding/hazelcast/HazelcastBindingTestCase.java

Author: antelder
Date: Wed Jun  2 12:43:09 2010
New Revision: 950539

URL: http://svn.apache.org/viewvc?rev=950539&view=rev
Log:
Change test to use local loop back address to avoid any network issues

Modified:
    tuscany/sca-java-2.x/trunk/modules/binding-hazelcast-runtime/src/test/java/org/apache/tuscany/sca/binding/hazelcast/HazelcastBindingTestCase.java

Modified: tuscany/sca-java-2.x/trunk/modules/binding-hazelcast-runtime/src/test/java/org/apache/tuscany/sca/binding/hazelcast/HazelcastBindingTestCase.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/binding-hazelcast-runtime/src/test/java/org/apache/tuscany/sca/binding/hazelcast/HazelcastBindingTestCase.java?rev=950539&r1=950538&r2=950539&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/modules/binding-hazelcast-runtime/src/test/java/org/apache/tuscany/sca/binding/hazelcast/HazelcastBindingTestCase.java (original)
+++ tuscany/sca-java-2.x/trunk/modules/binding-hazelcast-runtime/src/test/java/org/apache/tuscany/sca/binding/hazelcast/HazelcastBindingTestCase.java Wed Jun  2 12:43:09 2010
@@ -23,8 +23,6 @@ import static org.junit.Assert.assertEqu
 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);