use of com.hazelcast.durableexecutor.DurableExecutorService in project hazelcast by hazelcast.
the class ClientDurableExecutorServiceTest method testInvokeAll.
@Test
public void testInvokeAll() throws Exception {
DurableExecutorService service = client.getDurableExecutorService(randomString());
List<BasicTestCallable> callables = Collections.emptyList();
expectedException.expect(UnsupportedOperationException.class);
service.invokeAll(callables);
}
use of com.hazelcast.durableexecutor.DurableExecutorService in project hazelcast by hazelcast.
the class ClientDurableExecutorServiceTest method testSubmitFailingCallableException.
@Test
public void testSubmitFailingCallableException() throws Exception {
DurableExecutorService service = client.getDurableExecutorService(randomString());
Future<String> failingFuture = service.submit(new FailingCallable());
expectedException.expect(ExecutionException.class);
failingFuture.get();
}
use of com.hazelcast.durableexecutor.DurableExecutorService in project hazelcast by hazelcast.
the class ClientDurableExecutorServiceTest method testAwaitTermination.
@Test
public void testAwaitTermination() throws Exception {
DurableExecutorService service = client.getDurableExecutorService(randomString());
assertFalse(service.awaitTermination(1, TimeUnit.SECONDS));
}
use of com.hazelcast.durableexecutor.DurableExecutorService in project hazelcast by hazelcast.
the class ClientDurableExecutorServiceTest method testInvokeAny_WithTimeout.
@Test
public void testInvokeAny_WithTimeout() throws Exception {
DurableExecutorService service = client.getDurableExecutorService(randomString());
List<BasicTestCallable> callables = Collections.emptyList();
expectedException.expect(UnsupportedOperationException.class);
service.invokeAny(callables, 1, TimeUnit.SECONDS);
}
use of com.hazelcast.durableexecutor.DurableExecutorService in project hazelcast by hazelcast.
the class ClientDurableExecutorServiceTest method testInvokeAny.
@Test
public void testInvokeAny() throws Exception {
DurableExecutorService service = client.getDurableExecutorService(randomString());
List<BasicTestCallable> callables = Collections.emptyList();
expectedException.expect(UnsupportedOperationException.class);
service.invokeAny(callables);
}
Aggregations