use of com.hazelcast.client.executor.tasks.SelectNoMembers in project hazelcast by hazelcast.
the class ClientExecutorServiceTest method testExecute_withNoMemberSelected.
@Test(expected = RejectedExecutionException.class)
public void testExecute_withNoMemberSelected() {
IExecutorService service = client.getExecutorService(randomString());
String mapName = randomString();
MemberSelector selector = new SelectNoMembers();
service.execute(new MapPutRunnable(mapName), selector);
}
Aggregations