Package io.debezium.embedded.async
Class AsyncEmbeddedEngineTest
java.lang.Object
io.debezium.embedded.async.AsyncEmbeddedEngineTest
Tests for
AsyncEmbeddedEngine implementation of DebeziumEngine.- Author:
- vjuranek
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class(package private) static class(package private) static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected io.debezium.engine.DebeziumEngine<org.apache.kafka.connect.source.SourceRecord>protected ExecutorServiceprivate Fileprotected static final AtomicBooleanprivate intprivate static final org.slf4j.Loggerprivate static final intprotected static final Pathprotected static final AtomicIntegerprivate static final Path -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidappendLinesToSource(int numberOfLines) voidprivate voidprotected voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidprotected voidprotected voidprotected voidwaitForTasksToStart(int minRunningTasks)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
NUMBER_OF_LINES
private static final int NUMBER_OF_LINES- See Also:
-
OFFSET_STORE_PATH
-
TEST_FILE_PATH
-
isEngineRunning
-
runningTasks
-
engine
protected io.debezium.engine.DebeziumEngine<org.apache.kafka.connect.source.SourceRecord> engine -
engineExecSrv
-
inputFile
-
linesAdded
private int linesAdded
-
-
Constructor Details
-
AsyncEmbeddedEngineTest
public AsyncEmbeddedEngineTest()
-
-
Method Details
-
beforeEach
- Throws:
Exception
-
testEngineBasicLifecycle
- Throws:
Exception
-
testRunMultipleTasks
- Throws:
Exception
-
testTasksAreStoppedIfSomeFailsToStart
public void testTasksAreStoppedIfSomeFailsToStart() -
testCompletionCallbackCalledUponSuccess
- Throws:
Exception
-
testCompletionCallbackCalledUponFailure
- Throws:
Exception
-
testCannotStopWhileTasksAreStarting
- Throws:
Exception
-
testCannotStopAlreadyStoppedEngine
- Throws:
Exception
-
testExecuteSmt
- Throws:
Exception
-
testPollingIsRetriedUponFailure
- Throws:
Exception
-
testConnectorFailsIfMaxRetriesExceeded
- Throws:
Exception
-
testEngineBasicLifecycleConsumerSequentially
- Throws:
Exception
-
testEngineBasicLifecycleConsumerNonSequentially
- Throws:
Exception
-
testCompletionCallbackCalledAfterConnectorStop
- Throws:
Exception
-
runEngineBasicLifecycleWithConsumer
private void runEngineBasicLifecycleWithConsumer(Properties props) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
stopEngine
protected void stopEngine() -
waitForEngineToStart
protected void waitForEngineToStart() -
waitForEngineToStop
protected void waitForEngineToStop() -
waitForTasksToStart
protected void waitForTasksToStart(int minRunningTasks) -
appendLinesToSource
- Throws:
IOException
-