Class Db2ReselectColumnsProcessorIT

java.lang.Object
io.debezium.embedded.AbstractConnectorTest
io.debezium.embedded.async.AbstractAsyncEngineConnectorTest
io.debezium.processors.AbstractReselectProcessorTest<io.debezium.connector.db2.Db2Connector>
io.debezium.connector.db2.Db2ReselectColumnsProcessorIT
All Implemented Interfaces:
io.debezium.util.Testing

public class Db2ReselectColumnsProcessorIT extends io.debezium.processors.AbstractReselectProcessorTest<io.debezium.connector.db2.Db2Connector>
Db2's integration tests for ReselectColumnsPostProcessor.
Author:
Chris Cranford
  • Nested Class Summary

    Nested classes/interfaces inherited from class io.debezium.embedded.AbstractConnectorTest

    io.debezium.embedded.AbstractConnectorTest.SourceRecords

    Nested classes/interfaces inherited from interface io.debezium.util.Testing

    io.debezium.util.Testing.Debug, io.debezium.util.Testing.Files, io.debezium.util.Testing.InterruptableFunction, io.debezium.util.Testing.Network, io.debezium.util.Testing.Print, io.debezium.util.Testing.Timer
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private io.debezium.connector.db2.Db2Connection
     

    Fields inherited from class io.debezium.embedded.AbstractConnectorTest

    consumedLines, engine, isEngineRunning, logger, logTestName, OFFSET_STORE_PATH, pollTimeoutInMs, skipTestRule
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
     
    protected void
     
    protected io.debezium.jdbc.JdbcConnection
     
    protected void
     
    protected void
     
    protected String
    fieldName(String fieldName)
     
    protected io.debezium.config.Configuration.Builder
     
    protected Class<io.debezium.connector.db2.Db2Connector>
     
    protected String
     
    protected String
     
    protected String
     
    protected String
     
    protected String
     
    protected void
     

    Methods inherited from class io.debezium.processors.AbstractReselectProcessorTest

    consumeRecordsByTopicReselectWhenNotNullSnapshot, consumeRecordsByTopicReselectWhenNotNullStreaming, consumeRecordsByTopicReselectWhenNullSnapshot, consumeRecordsByTopicReselectWhenNullStreaming, testColumnsReselectedWhenValueIsNullSnapshot, testColumnsReselectedWhenValueIsNullStreaming, testNoColumnsReselectedWhenNotNullSnapshot, testNoColumnsReselectedWhenNotNullStreaming, testNoColumnsReselectedWhenNullAndUnavailableColumnsAreDisabled

    Methods inherited from class io.debezium.embedded.async.AbstractAsyncEngineConnectorTest

    createEngine, createEngineBuilder

    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, 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, storeOffsets, validate, waitForAvailableRecords, waitForConnectorShutdown, waitForEngineShutdown, waitForSnapshotToBeCompleted, waitForSnapshotToBeCompleted, waitForSnapshotWithCustomMetricsToBeCompleted, waitForStreamingRunning, waitForStreamingRunning, waitForStreamingRunning, waitForStreamingWithCustomMetricsToStart, waitTimeForEngine, waitTimeForRecords, waitTimeForRecordsAfterNulls

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.debezium.util.Testing

    once, once, resetBeforeEachTest, time, time
  • Field Details

    • connection

      private io.debezium.connector.db2.Db2Connection connection
  • Constructor Details

    • Db2ReselectColumnsProcessorIT

      public Db2ReselectColumnsProcessorIT()
  • Method Details

    • beforeEach

      public void beforeEach() throws Exception
      Overrides:
      beforeEach in class io.debezium.processors.AbstractReselectProcessorTest<io.debezium.connector.db2.Db2Connector>
      Throws:
      Exception
    • afterEach

      public void afterEach() throws Exception
      Overrides:
      afterEach in class io.debezium.processors.AbstractReselectProcessorTest<io.debezium.connector.db2.Db2Connector>
      Throws:
      Exception
    • getConnectorClass

      protected Class<io.debezium.connector.db2.Db2Connector> getConnectorClass()
      Specified by:
      getConnectorClass in class io.debezium.processors.AbstractReselectProcessorTest<io.debezium.connector.db2.Db2Connector>
    • databaseConnection

      protected io.debezium.jdbc.JdbcConnection databaseConnection()
      Specified by:
      databaseConnection in class io.debezium.processors.AbstractReselectProcessorTest<io.debezium.connector.db2.Db2Connector>
    • getConfigurationBuilder

      protected io.debezium.config.Configuration.Builder getConfigurationBuilder()
      Specified by:
      getConfigurationBuilder in class io.debezium.processors.AbstractReselectProcessorTest<io.debezium.connector.db2.Db2Connector>
    • topicName

      protected String topicName()
      Specified by:
      topicName in class io.debezium.processors.AbstractReselectProcessorTest<io.debezium.connector.db2.Db2Connector>
    • tableName

      protected String tableName()
      Specified by:
      tableName in class io.debezium.processors.AbstractReselectProcessorTest<io.debezium.connector.db2.Db2Connector>
    • reselectColumnsList

      protected String reselectColumnsList()
      Specified by:
      reselectColumnsList in class io.debezium.processors.AbstractReselectProcessorTest<io.debezium.connector.db2.Db2Connector>
    • createTable

      protected void createTable() throws Exception
      Specified by:
      createTable in class io.debezium.processors.AbstractReselectProcessorTest<io.debezium.connector.db2.Db2Connector>
      Throws:
      Exception
    • dropTable

      protected void dropTable() throws Exception
      Specified by:
      dropTable in class io.debezium.processors.AbstractReselectProcessorTest<io.debezium.connector.db2.Db2Connector>
      Throws:
      Exception
    • getInsertWithValue

      protected String getInsertWithValue()
      Specified by:
      getInsertWithValue in class io.debezium.processors.AbstractReselectProcessorTest<io.debezium.connector.db2.Db2Connector>
    • getInsertWithNullValue

      protected String getInsertWithNullValue()
      Specified by:
      getInsertWithNullValue in class io.debezium.processors.AbstractReselectProcessorTest<io.debezium.connector.db2.Db2Connector>
    • waitForStreamingStarted

      protected void waitForStreamingStarted() throws InterruptedException
      Specified by:
      waitForStreamingStarted in class io.debezium.processors.AbstractReselectProcessorTest<io.debezium.connector.db2.Db2Connector>
      Throws:
      InterruptedException
    • fieldName

      protected String fieldName(String fieldName)
      Overrides:
      fieldName in class io.debezium.processors.AbstractReselectProcessorTest<io.debezium.connector.db2.Db2Connector>
    • enableTableForCdc

      protected void enableTableForCdc() throws Exception
      Overrides:
      enableTableForCdc in class io.debezium.processors.AbstractReselectProcessorTest<io.debezium.connector.db2.Db2Connector>
      Throws:
      Exception