public class UnwrapFromMongoDbEnvelopeTestIT extends AbstractConnectorTest
UnwrapFromMongoDbEnvelope. It sends operations into
MongoDB and listens on messages that are generated by Debezium plug-in. The messages
are then run through the SMT itself.AbstractConnectorTest.SourceRecordsTesting.Debug, Testing.Files, Testing.InterruptableFunction, Testing.Network, Testing.Print, Testing.Timer| Modifier and Type | Field and Description |
|---|---|
private static String |
COLLECTION_NAME |
private Configuration |
config |
private io.debezium.connector.mongodb.MongoDbTaskContext |
context |
private static String |
DB_NAME |
private static String |
TOPIC_NAME |
private io.debezium.connector.mongodb.transforms.UnwrapFromMongoDbEnvelope<org.apache.kafka.connect.source.SourceRecord> |
transformation |
engine, logger, OFFSET_STORE_PATH, pollTimeoutInMs, skipTestRule| Constructor and Description |
|---|
UnwrapFromMongoDbEnvelopeTestIT() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterEach() |
void |
beforeEach() |
private BiConsumer<String,Throwable> |
connectionErrorHandler(int numErrorsBeforeFailing) |
private io.debezium.connector.mongodb.ConnectionContext.MongoPrimary |
primary() |
void |
shouldTransformEvents() |
assertConfigurationErrors, assertConfigurationErrors, assertConfigurationErrors, assertConnectorIsRunning, assertConnectorNotRunning, assertDelete, assertEngineIsRunning, assertHasNoSourceQuery, assertInsert, assertKey, assertNoConfigurationErrors, assertNoRecordsToConsume, assertOffset, assertOffset, assertSchemaMatchesStruct, assertSchemaMatchesStruct, assertSourceQuery, assertTombstone, assertTombstone, assertUpdate, assertValueField, configValue, consumeAvailableRecords, consumeRecord, consumeRecords, consumeRecords, consumeRecordsByTopic, debug, getMaximumEnqueuedRecordCount, initializeConnectorTestFramework, loggingCompletion, print, readLastCommittedOffset, readLastCommittedOffsets, setConsumeTimeout, start, start, start, start, stopConnector, stopConnector, validate, waitForAvailableRecordsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdebug, once, once, print, print, printError, printError, printError, resetBeforeEachTest, time, timeprivate static final String DB_NAME
private static final String COLLECTION_NAME
private static final String TOPIC_NAME
private Configuration config
private io.debezium.connector.mongodb.MongoDbTaskContext context
private io.debezium.connector.mongodb.transforms.UnwrapFromMongoDbEnvelope<org.apache.kafka.connect.source.SourceRecord> transformation
public void beforeEach()
public void afterEach()
public void shouldTransformEvents()
throws InterruptedException,
IOException
InterruptedExceptionIOExceptionprivate io.debezium.connector.mongodb.ConnectionContext.MongoPrimary primary()
private BiConsumer<String,Throwable> connectionErrorHandler(int numErrorsBeforeFailing)
Copyright © 2018 JBoss by Red Hat. All rights reserved.