Search in sources :

Example 6 with ClientPartitionService

use of com.hazelcast.client.spi.ClientPartitionService in project hazelcast by hazelcast.

the class ClientPartitionServiceLiteMemberTest method testGetPartitionsBlockingFailWithOnlyLiteMember.

@Test(expected = NoDataMemberInClusterException.class)
public void testGetPartitionsBlockingFailWithOnlyLiteMember() {
    factory.newHazelcastInstance(new Config().setLiteMember(true));
    final HazelcastInstance client = factory.newHazelcastClient();
    final ClientPartitionService clientPartitionService = getClientPartitionService(client);
    clientPartitionService.getPartitionOwner(0);
}
Also used : HazelcastInstance(com.hazelcast.core.HazelcastInstance) Config(com.hazelcast.config.Config) ClientPartitionService(com.hazelcast.client.spi.ClientPartitionService) QuickTest(com.hazelcast.test.annotation.QuickTest) Test(org.junit.Test) ParallelTest(com.hazelcast.test.annotation.ParallelTest)

Aggregations

ClientPartitionService (com.hazelcast.client.spi.ClientPartitionService)6 Data (com.hazelcast.nio.serialization.Data)3 ArrayList (java.util.ArrayList)3 List (java.util.List)3 Config (com.hazelcast.config.Config)2 HazelcastInstance (com.hazelcast.core.HazelcastInstance)2 UnmodifiableLazyList (com.hazelcast.spi.impl.UnmodifiableLazyList)2 ParallelTest (com.hazelcast.test.annotation.ParallelTest)2 QuickTest (com.hazelcast.test.annotation.QuickTest)2 AbstractMap (java.util.AbstractMap)2 Collections.emptyMap (java.util.Collections.emptyMap)2 HashMap (java.util.HashMap)2 Map (java.util.Map)2 ConcurrentHashMap (java.util.concurrent.ConcurrentHashMap)2 Test (org.junit.Test)2 ClientContext (com.hazelcast.client.spi.ClientContext)1 IMap (com.hazelcast.core.IMap)1 LazyMapEntry (com.hazelcast.map.impl.LazyMapEntry)1 MapUtil.createHashMap (com.hazelcast.util.MapUtil.createHashMap)1 ConcurrentMap (java.util.concurrent.ConcurrentMap)1