Package io.debezium.embedded.async
Class RetryingCallableTest
java.lang.Object
io.debezium.embedded.async.RetryingCallableTest
Tests for
Callable with retries RetryingCallable.- Author:
- vjuranek
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classprivate static classprivate static class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidvoidvoidvoid
-
Field Details
-
execService
-
-
Constructor Details
-
RetryingCallableTest
public RetryingCallableTest()
-
-
Method Details
-
CreateExecutorService
public void CreateExecutorService() -
shutDownExecutorService
public void shutDownExecutorService() -
shouldExecuteNeverFailing
-
shouldNotRetryWhenCallableDoesNotFail
-
shouldIgnoreInfiniteRetryWhenCallableDoesNotFail
public void shouldIgnoreInfiniteRetryWhenCallableDoesNotFail() throws InterruptedException, ExecutionException -
shouldRetryAsManyTimesAsRequested
- Throws:
InterruptedException
-
shouldRetryAsManyTimesAsRequestedWhenAlwaysFails
- Throws:
InterruptedException
-
shouldNotRetryWhenRetriesAreDisabled
- Throws:
InterruptedException
-
shouldKeepRetryingWhenRetryIsInfinite
- Throws:
InterruptedException
-