tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From antel...@apache.org
Subject svn commit: r950970 - in /tuscany/sca-java-2.x/trunk/modules/endpoint-hazelcast/src: main/java/org/apache/tuscany/sca/endpoint/hazelcast/HazelcastEndpointRegistry.java test/java/org/apache/tuscany/sca/endpoint/hazelcast/MultiRegTestCase.java
Date Thu, 03 Jun 2010 11:29:56 GMT
Author: antelder
Date: Thu Jun  3 11:29:56 2010
New Revision: 950970

URL: http://svn.apache.org/viewvc?rev=950970&view=rev
Log:
Update to corectly use loop back address in tests

Modified:
    tuscany/sca-java-2.x/trunk/modules/endpoint-hazelcast/src/main/java/org/apache/tuscany/sca/endpoint/hazelcast/HazelcastEndpointRegistry.java
    tuscany/sca-java-2.x/trunk/modules/endpoint-hazelcast/src/test/java/org/apache/tuscany/sca/endpoint/hazelcast/MultiRegTestCase.java

Modified: tuscany/sca-java-2.x/trunk/modules/endpoint-hazelcast/src/main/java/org/apache/tuscany/sca/endpoint/hazelcast/HazelcastEndpointRegistry.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/endpoint-hazelcast/src/main/java/org/apache/tuscany/sca/endpoint/hazelcast/HazelcastEndpointRegistry.java?rev=950970&r1=950969&r2=950970&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/modules/endpoint-hazelcast/src/main/java/org/apache/tuscany/sca/endpoint/hazelcast/HazelcastEndpointRegistry.java
(original)
+++ tuscany/sca-java-2.x/trunk/modules/endpoint-hazelcast/src/main/java/org/apache/tuscany/sca/endpoint/hazelcast/HazelcastEndpointRegistry.java
Thu Jun  3 11:29:56 2010
@@ -75,7 +75,7 @@ public class HazelcastEndpointRegistry e
     public HazelcastEndpointRegistry(ExtensionPointRegistry registry, Properties properties,
String domainURI) {
         super(registry, null, null, domainURI);
         this.assemblyFactory = registry.getExtensionPoint(FactoryExtensionPoint.class).getFactory(AssemblyFactory.class);
-        this.properties = registry.getExtensionPoint(UtilityExtensionPoint.class).getUtility(RuntimeProperties.class).getProperties();
+        this.properties = properties;
     }
 
     public HazelcastEndpointRegistry(ExtensionPointRegistry registry,

Modified: tuscany/sca-java-2.x/trunk/modules/endpoint-hazelcast/src/test/java/org/apache/tuscany/sca/endpoint/hazelcast/MultiRegTestCase.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/endpoint-hazelcast/src/test/java/org/apache/tuscany/sca/endpoint/hazelcast/MultiRegTestCase.java?rev=950970&r1=950969&r2=950970&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/modules/endpoint-hazelcast/src/test/java/org/apache/tuscany/sca/endpoint/hazelcast/MultiRegTestCase.java
(original)
+++ tuscany/sca-java-2.x/trunk/modules/endpoint-hazelcast/src/test/java/org/apache/tuscany/sca/endpoint/hazelcast/MultiRegTestCase.java
Thu Jun  3 11:29:56 2010
@@ -19,6 +19,8 @@
 
 package org.apache.tuscany.sca.endpoint.hazelcast;
 
+import java.util.Properties;
+
 import org.apache.tuscany.sca.assembly.AssemblyFactory;
 import org.apache.tuscany.sca.assembly.Binding;
 import org.apache.tuscany.sca.assembly.Component;
@@ -27,7 +29,9 @@ import org.apache.tuscany.sca.assembly.S
 import org.apache.tuscany.sca.core.DefaultExtensionPointRegistry;
 import org.apache.tuscany.sca.core.ExtensionPointRegistry;
 import org.apache.tuscany.sca.core.FactoryExtensionPoint;
+import org.apache.tuscany.sca.core.UtilityExtensionPoint;
 import org.apache.tuscany.sca.runtime.RuntimeEndpoint;
+import org.apache.tuscany.sca.runtime.RuntimeProperties;
 import org.junit.Assert;
 import org.junit.BeforeClass;
 import org.junit.Test;
@@ -43,13 +47,15 @@ public class MultiRegTestCase {
         FactoryExtensionPoint factories = extensionPoints.getExtensionPoint(FactoryExtensionPoint.class);
         assemblyFactory = factories.getFactory(AssemblyFactory.class);
         scaBindingFactory = factories.getFactory(SCABindingFactory.class);
+        Properties properties = extensionPoints.getExtensionPoint(UtilityExtensionPoint.class).getUtility(RuntimeProperties.class).getProperties();
+        properties.setProperty("bind", "127.0.0.1");
     }
 
     @Test
     public void testReplication() throws Exception {
 
         System.out.println("Starting reg1");
-        HazelcastEndpointRegistry reg1 = new HazelcastEndpointRegistry(extensionPoints, null,
"tuscany:foo?listen=127.0.0.1:9876&multicast=off", "bar");
+        HazelcastEndpointRegistry reg1 = new HazelcastEndpointRegistry(extensionPoints, null,
null, "bar");
         reg1.start();
 
         System.out.println("Adding ep1");



Mime
View raw message