@Test public void testTwoMemberMapSizes() { // start the first member HazelcastInstance h1 = Hazelcast.newHazelcastInstance(null); // get the map and put 1000 entries Map map1 = h1.getMap("testmap"); for (int i = 0; i < 1000; i++) { map1.put(i, "value" + i); } // check the map size assertEquals(1000, map1.size()); // start the second member HazelcastInstance h2 = Hazelcast.newHazelcastInstance(null); // get the same map from the second member Map map2 = h2.getMap("testmap"); // check the size of map2 assertEquals(1000, map2.size()); // check the size of map1 again assertEquals(1000, map1.size()); }def "can glue together multiple hazelcast to test"() {
Doesn't work. I've tried various permutations of new Config() instead of null, but it's not happening.
Maybe it's because I'm using spock, but I don't think so. My actual test code is here:
--
You received this message because you are subscribed to the Google Groups "Hazelcast" group.
To view this discussion on the web visit https://groups.google.com/d/msg/hazelcast/-/QXp5gZsa5oEJ.
To post to this group, send email to haze...@googlegroups.com.
To unsubscribe from this group, send email to hazelcast+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/hazelcast?hl=en.
To unsubscribe from this group, send email to hazelcast+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/hazelcast?hl=en.
--
You received this message because you are subscribed to the Google Groups "Hazelcast" group.
To post to this group, send email to haze...@googlegroups.com.
To unsubscribe from this group, send email to hazelcast+unsubscribe@googlegroups.com.
Turns out I had evilness in my test suite where some hazelcast
instances weren't being properly shut down, and that was causing
problems. Everything seems to be peachy now.
--
David
>>>>> hazelcast+...@googlegroups.com.
>>>>> For more options, visit this group at
>>>>> http://groups.google.com/group/hazelcast?hl=en.
>>>>
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Hazelcast" group.
>>>> To post to this group, send email to haze...@googlegroups.com.
>>>> To unsubscribe from this group, send email to
>>>> hazelcast+...@googlegroups.com.
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/hazelcast?hl=en.
>>>
>>>
> --
> You received this message because you are subscribed to the Google Groups
> "Hazelcast" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/hazelcast/-/SID_L4EjGOUJ.
>
> To post to this group, send email to haze...@googlegroups.com.
> To unsubscribe from this group, send email to
> hazelcast+...@googlegroups.com.