servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ioca...@apache.org
Subject svn commit: r1146122 - /servicemix/utils/trunk/src/test/java/org/apache/servicemix/store/hazelcast/HazelcastStoreTest.java
Date Wed, 13 Jul 2011 16:39:22 GMT
Author: iocanel
Date: Wed Jul 13 16:39:22 2011
New Revision: 1146122

URL: http://svn.apache.org/viewvc?rev=1146122&view=rev
Log:
[SM-2110] Chaged the default group username/password inside the hazelcast store test.

Modified:
    servicemix/utils/trunk/src/test/java/org/apache/servicemix/store/hazelcast/HazelcastStoreTest.java

Modified: servicemix/utils/trunk/src/test/java/org/apache/servicemix/store/hazelcast/HazelcastStoreTest.java
URL: http://svn.apache.org/viewvc/servicemix/utils/trunk/src/test/java/org/apache/servicemix/store/hazelcast/HazelcastStoreTest.java?rev=1146122&r1=1146121&r2=1146122&view=diff
==============================================================================
--- servicemix/utils/trunk/src/test/java/org/apache/servicemix/store/hazelcast/HazelcastStoreTest.java
(original)
+++ servicemix/utils/trunk/src/test/java/org/apache/servicemix/store/hazelcast/HazelcastStoreTest.java
Wed Jul 13 16:39:22 2011
@@ -17,6 +17,7 @@
 
 package org.apache.servicemix.store.hazelcast;
 
+import com.hazelcast.config.Config;
 import org.apache.servicemix.store.Entry;
 import java.util.Map;
 import com.hazelcast.core.Hazelcast;
@@ -34,11 +35,17 @@ public class HazelcastStoreTest extends 
     private static final long TIMEOUT = 250L; 
 
     private Store store;
+    private Config config = new Config();
+
+
     private final HazelcastStoreFactory factory = new HazelcastStoreFactory();
-    private HazelcastInstance hazelcastInstance = Hazelcast.newHazelcastInstance(null);
+    private HazelcastInstance hazelcastInstance=null;
     
     public HazelcastStoreTest() {
         super();
+        config.getGroupConfig().setName("testgroup");
+        config.getGroupConfig().setPassword("testpwd");
+        this.hazelcastInstance =  Hazelcast.newHazelcastInstance(config);
         factory.setTimeout(TIMEOUT);
         factory.setHazelcastInstance(hazelcastInstance);
     }
@@ -71,7 +78,7 @@ public class HazelcastStoreTest extends 
     
     public void testDistributesStoreAndLoad() throws Exception {        
         //Create a new Hazelcast instance
-        HazelcastInstance instance = Hazelcast.newHazelcastInstance(null);
+        HazelcastInstance instance = Hazelcast.newHazelcastInstance(config);
         Map map = instance.getMap(HazelcastStoreFactory.STORE_PREFIX+".test");
         
         String id = "testId";



Mime
View raw message