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);
}
Aggregations