Class MongoEventRouterTestIT
- java.lang.Object
-
- io.debezium.embedded.AbstractConnectorTest
-
- io.debezium.connector.mongodb.AbstractMongoConnectorIT
-
- io.debezium.connector.mongodb.transforms.outbox.MongoEventRouterTestIT
-
- All Implemented Interfaces:
Testing
public class MongoEventRouterTestIT extends AbstractMongoConnectorIT
Integration tests forMongoEventRouter- Author:
- Sungho Hwang
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.debezium.embedded.AbstractConnectorTest
AbstractConnectorTest.SourceRecords
-
Nested classes/interfaces inherited from interface io.debezium.util.Testing
Testing.Debug, Testing.Files, Testing.InterruptableFunction, Testing.Network, Testing.Print, Testing.Timer
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringDB_NAMEprivate io.debezium.connector.mongodb.transforms.outbox.MongoEventRouter<org.apache.kafka.connect.source.SourceRecord>outboxEventRouterprotected static StringSERVER_NAME-
Fields inherited from class io.debezium.connector.mongodb.AbstractMongoConnectorIT
config, context, logInterceptor
-
Fields inherited from class io.debezium.embedded.AbstractConnectorTest
engine, logger, logTestName, OFFSET_STORE_PATH, pollTimeoutInMs, skipTestRule
-
-
Constructor Summary
Constructors Constructor Description MongoEventRouterTestIT()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterEach()voidbeforeEach()voidbeforeEach(Configuration config)private StringgetCollectionName()voidshouldConsumeRecordsFromInsert()voidshouldNotProduceTombstoneEventForNullPayload()voidshouldProduceTombstoneEventForNullPayload()voidshouldSendEventTypeAsHeader()voidshouldSendEventTypeAsValue()voidshouldSupportAllFeatures()protected StringtopicName()-
Methods inherited from class io.debezium.connector.mongodb.AbstractMongoConnectorIT
beforEach, connectionErrorHandler, deleteDocuments, dropAndInsertDocuments, insertDocuments, insertDocumentsInTx, loadTestDocuments, primary, storeDocuments, storeDocuments, updateDocument, updateDocumentsInTx
-
Methods 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, consumeDmlRecordsByTopic, consumeDmlRecordsByTopic, consumeDmlRecordsByTopic, consumeRecord, consumeRecords, consumeRecords, consumeRecords, consumeRecordsByTopic, consumeRecordsByTopic, consumeRecordsByTopic, debug, getMaximumEnqueuedRecordCount, getSnapshotMetricsObjectName, getStreamingMetricsObjectName, getStreamingMetricsObjectName, getStreamingNamespace, initializeConnectorTestFramework, isStreamingRunning, isStreamingRunning, isTransactionRecord, loggingCompletion, print, readLastCommittedOffset, readLastCommittedOffsets, setConsumeTimeout, skipAvroValidation, start, start, start, start, start, startAndConsumeTillEnd, startAndConsumeTillEnd, stopConnector, stopConnector, validate, waitForAvailableRecords, waitForConnectorShutdown, waitForSnapshotToBeCompleted, waitForStreamingRunning, waitForStreamingRunning, waitTimeForRecords, waitTimeForRecordsAfterNulls
-
-
-
-
Field Detail
-
DB_NAME
protected static final String DB_NAME
- See Also:
- Constant Field Values
-
SERVER_NAME
protected static final String SERVER_NAME
- See Also:
- Constant Field Values
-
outboxEventRouter
private io.debezium.connector.mongodb.transforms.outbox.MongoEventRouter<org.apache.kafka.connect.source.SourceRecord> outboxEventRouter
-
-
Method Detail
-
beforeEach
public void beforeEach()
-
getCollectionName
private String getCollectionName()
-
topicName
protected String topicName()
-
beforeEach
public void beforeEach(Configuration config)
-
afterEach
public void afterEach()
- Overrides:
afterEachin classAbstractMongoConnectorIT
-
shouldConsumeRecordsFromInsert
public void shouldConsumeRecordsFromInsert() throws Exception- Throws:
Exception
-
shouldSendEventTypeAsHeader
public void shouldSendEventTypeAsHeader() throws Exception- Throws:
Exception
-
shouldSendEventTypeAsValue
public void shouldSendEventTypeAsValue() throws Exception- Throws:
Exception
-
shouldNotProduceTombstoneEventForNullPayload
public void shouldNotProduceTombstoneEventForNullPayload() throws Exception- Throws:
Exception
-
-