Package io.debezium.converters
Class AbstractCloudEventsConverterTest<T extends org.apache.kafka.connect.source.SourceConnector>
java.lang.Object
io.debezium.embedded.AbstractConnectorTest
io.debezium.converters.AbstractCloudEventsConverterTest<T>
- All Implemented Interfaces:
Testing
public abstract class AbstractCloudEventsConverterTest<T extends org.apache.kafka.connect.source.SourceConnector>
extends AbstractConnectorTest
A unified test of all
CloudEventsConverter behavior which all connectors should extend.- Author:
- Roman Kudryashov
-
Nested Class Summary
Nested 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 TypeFieldDescriptionprotected org.apache.kafka.connect.transforms.HeaderFrom<org.apache.kafka.connect.source.SourceRecord>protected EventRouter<org.apache.kafka.connect.source.SourceRecord>Fields inherited from class io.debezium.embedded.AbstractConnectorTest
consumedLines, engine, logger, logTestName, OFFSET_STORE_PATH, pollTimeoutInMs, skipTestRule -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidprotected abstract StringcreateInsert(String eventId, String eventType, String aggregateType, String aggregateId, String payloadJson, String additional) protected abstract voidprotected abstract JdbcConnectionprotected abstract Configuration.Builderprotected abstract Stringprotected abstract Stringvoidprivate voidprotected abstract Stringprotected abstract Stringprotected abstract voidMethods 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
-
outboxEventRouter
-
headerFrom
protected org.apache.kafka.connect.transforms.HeaderFrom<org.apache.kafka.connect.source.SourceRecord> headerFrom
-
-
Constructor Details
-
AbstractCloudEventsConverterTest
public AbstractCloudEventsConverterTest()
-
-
Method Details
-
getConnectorClass
-
getConnectorName
-
getServerName
-
databaseConnection
-
getConfigurationBuilder
-
topicName
-
tableName
-
createTable
- Throws:
Exception
-
createInsert
-
waitForStreamingStarted
- Throws:
InterruptedException
-
beforeEach
- Throws:
Exception
-
afterEach
- Throws:
Exception
-
shouldConvertToCloudEventsInJsonWithMetadataInHeadersAfterOutboxEventRouter
@FixFor("DBZ-3642") public void shouldConvertToCloudEventsInJsonWithMetadataInHeadersAfterOutboxEventRouter() throws Exception- Throws:
Exception
-
startConnector
- Throws:
Exception
-