Package io.debezium.embedded
Class EmbeddedEngineTest
java.lang.Object
io.debezium.embedded.AbstractConnectorTest
io.debezium.embedded.EmbeddedEngineTest
- All Implemented Interfaces:
Testing
- Author:
- Randall Hauch
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classNested classes/interfaces inherited from class io.debezium.embedded.AbstractConnectorTest
AbstractConnectorTest.SourceRecordsNested classes/interfaces inherited from interface io.debezium.util.Testing
Testing.Debug, Testing.Files, Testing.InterruptableFunction, Testing.Network, Testing.Print, Testing.Timer -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Configurationprivate Fileprivate intprivate intprivate static final intprivate static final Pathprivate static final CharsetFields inherited from class io.debezium.embedded.AbstractConnectorTest
consumedLines, engine, logger, logTestName, OFFSET_STORE_PATH, pollTimeoutInMs, skipTestRule -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidappendLinesToSource(int numberOfLines) protected voidappendLinesToSource(String linePrefix, int numberOfLines) voidprotected voidconsumeLines(int numberOfLines) protected StringgenerateLine(int lineNumber) protected StringgenerateLine(String linePrefix, int lineNumber) voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidMethods inherited from class io.debezium.embedded.AbstractConnectorTest
assertBeginTransaction, assertConfigurationErrors, assertConfigurationErrors, assertConfigurationErrors, assertConnectorIsRunning, assertConnectorNotRunning, assertDelete, assertEndTransaction, assertEngineIsRunning, assertHasNoSourceQuery, assertInsert, assertKey, assertNoConfigurationErrors, assertNoRecordsToConsume, assertOffset, assertOffset, assertOnlyTransactionRecordsToConsume, assertRecordTransactionMetadata, assertSchemaMatchesStruct, assertSchemaMatchesStruct, assertSourceQuery, assertTombstone, assertTombstone, assertUpdate, assertValueField, configValue, consumeAvailableRecords, consumeAvailableRecordsByTopic, consumeDmlRecordsByTopic, consumeDmlRecordsByTopic, consumeDmlRecordsByTopic, consumeRecord, consumeRecords, consumeRecords, consumeRecords, consumeRecordsButSkipUntil, consumeRecordsByTopic, consumeRecordsByTopic, consumeRecordsByTopic, consumeRecordsByTopicUntil, consumeRecordsUntil, debug, getConsumer, getMaximumEnqueuedRecordCount, getSnapshotMetricsObjectName, getSnapshotMetricsObjectName, getSnapshotMetricsObjectName, getStreamingMetricsObjectName, getStreamingMetricsObjectName, getStreamingMetricsObjectName, getStreamingMetricsObjectName, getStreamingNamespace, initializeConnectorTestFramework, isStreamingRunning, isStreamingRunning, isStreamingRunning, isStreamingRunning, isTransactionRecord, loggingCompletion, print, readLastCommittedOffset, readLastCommittedOffsets, setConsumeTimeout, skipAvroValidation, start, start, start, start, start, start, start, startAndConsumeTillEnd, startAndConsumeTillEnd, stopConnector, stopConnector, validate, waitForAvailableRecords, waitForConnectorShutdown, waitForNotInitialState, waitForSnapshotToBeCompleted, waitForSnapshotToBeCompleted, waitForSnapshotWithCustomMetricsToBeCompleted, waitForStreamingRunning, waitForStreamingRunning, waitForStreamingRunning, waitForStreamingWithCustomMetricsToStart, waitTimeForRecords, waitTimeForRecordsAfterNulls
-
Field Details
-
NUMBER_OF_LINES
private static final int NUMBER_OF_LINES- See Also:
-
TEST_FILE_PATH
-
UTF8
-
inputFile
-
nextConsumedLineNumber
private int nextConsumedLineNumber -
linesAdded
private int linesAdded -
connectorConfig
-
-
Constructor Details
-
EmbeddedEngineTest
public EmbeddedEngineTest()
-
-
Method Details
-
beforeEach
- Throws:
Exception
-
verifyNonAsciiContentHandledCorrectly
- Throws:
Exception
-
interruptedTaskShutsDown
- Throws:
Exception
-
interruptedOffsetCommitShutsDown
- Throws:
Exception
-
shouldStartAndUseFileConnectorUsingMemoryOffsetStorage
- Throws:
Exception
-
shouldWorkToUseCustomChangeConsumer
- Throws:
Exception
-
shouldRunDebeziumEngine
- Throws:
Exception
-
shouldRunEngineWithConsumerSettingOffsets
- Throws:
Exception
-
shouldExecuteSmt
- Throws:
Exception
-
invalidSmt
- Throws:
Exception
-
shouldRunDebeziumEngineWithJson
- Throws:
Exception
-
shouldRunDebeziumEngineWithMismatchedTypes
- Throws:
Exception
-
verifyBadCommitPolicyClassName
-
validationThrowsException
- Throws:
Exception
-
appendLinesToSource
- Throws:
IOException
-
appendLinesToSource
- Throws:
IOException
-
generateLine
-
generateLine
-
consumeLines
- Throws:
InterruptedException
-