Class AbstractExtractNewDocumentStateTestIT

java.lang.Object
io.debezium.embedded.AbstractConnectorTest
io.debezium.connector.mongodb.transforms.AbstractExtractNewDocumentStateTestIT
All Implemented Interfaces:
Testing
Direct Known Subclasses:
AbstractExtractNewDocumentStateUpdateOperatorsTestIT, ExtractNewDocumentStateTestIT

public abstract class AbstractExtractNewDocumentStateTestIT extends AbstractConnectorTest
Baseline for all integrations tests regarding MongoDB Update Operations
Author:
Renato Mefi
  • Field Details

    • DB_NAME

      protected static final String DB_NAME
      See Also:
    • SERVER_NAME

      protected static final String SERVER_NAME
      See Also:
    • context

      private io.debezium.connector.mongodb.MongoDbTaskContext context
    • transformation

      protected io.debezium.connector.mongodb.transforms.ExtractNewDocumentState<org.apache.kafka.connect.source.SourceRecord> transformation
  • Constructor Details

    • AbstractExtractNewDocumentStateTestIT

      public AbstractExtractNewDocumentStateTestIT()
  • Method Details

    • getCollectionName

      protected abstract String getCollectionName()
    • topicName

      protected String topicName()
    • beforeEach

      public void beforeEach()
    • beforeEach

      public void beforeEach(Configuration config)
    • afterEach

      public void afterEach()
    • restartConnectorWithoutEmittingTombstones

      protected void restartConnectorWithoutEmittingTombstones()
    • getRecordByOperation

      org.apache.kafka.connect.source.SourceRecord getRecordByOperation(Envelope.Operation operation) throws InterruptedException
      Throws:
      InterruptedException
    • getNextRecord

      org.apache.kafka.connect.source.SourceRecord getNextRecord() throws InterruptedException
      Throws:
      InterruptedException
    • getUpdateRecord

      protected org.apache.kafka.connect.source.SourceRecord getUpdateRecord() throws InterruptedException
      Throws:
      InterruptedException
    • primary

      protected io.debezium.connector.mongodb.ConnectionContext.MongoPrimary primary()
    • connectionErrorHandler

      private BiConsumer<String,Throwable> connectionErrorHandler(int numErrorsBeforeFailing)