use of com.hazelcast.test.ExceptionThrowingCallable in project hazelcast by hazelcast.
the class OperationServiceImpl_invokeOnTargetTest method whenExceptionThrownInOperationRun.
@Test
public void whenExceptionThrownInOperationRun() {
DummyOperation operation = new DummyOperation(new ExceptionThrowingCallable());
InternalCompletableFuture<String> invocation = operationService.invokeOnTarget(null, operation, getAddress(remote));
try {
invocation.joinInternal();
fail();
} catch (ExpectedRuntimeException expected) {
}
}
use of com.hazelcast.test.ExceptionThrowingCallable in project hazelcast by hazelcast.
the class OperationServiceImpl_invokeOnPartitionTest method whenExceptionThrownInOperationRun.
@Test
public void whenExceptionThrownInOperationRun() {
DummyOperation operation = new DummyOperation(new ExceptionThrowingCallable());
InternalCompletableFuture<String> invocation = operationService.invokeOnPartition(null, operation, getPartitionId(remote));
try {
invocation.joinInternal();
fail();
} catch (ExpectedRuntimeException expected) {
}
}
Aggregations