Class BinlogDatabaseSchemaTest<C extends io.debezium.connector.binlog.BinlogConnectorConfig,S extends io.debezium.connector.binlog.BinlogDatabaseSchema<P,O,?,?>,P extends io.debezium.connector.binlog.BinlogPartition,O extends io.debezium.connector.binlog.BinlogOffsetContext<?>>

java.lang.Object
io.debezium.connector.binlog.BinlogDatabaseSchemaTest<C,S,P,O>

public abstract class BinlogDatabaseSchemaTest<C extends io.debezium.connector.binlog.BinlogConnectorConfig,S extends io.debezium.connector.binlog.BinlogDatabaseSchema<P,O,?,?>,P extends io.debezium.connector.binlog.BinlogPartition,O extends io.debezium.connector.binlog.BinlogOffsetContext<?>> extends Object
Author:
Randall Hauch
  • Field Details

    • TEST_FILE_PATH

      private static final Path TEST_FILE_PATH
    • DATABASE

      private final UniqueDatabase DATABASE
    • SERVER_NAME

      private static final String SERVER_NAME
      See Also:
    • schema

      protected S extends io.debezium.connector.binlog.BinlogDatabaseSchema<P,O,?,?> schema
    • connectorConfig

      protected C extends io.debezium.connector.binlog.BinlogConnectorConfig connectorConfig
  • Constructor Details

    • BinlogDatabaseSchemaTest

      public BinlogDatabaseSchemaTest()
  • Method Details

    • beforeEach

      public void beforeEach()
    • getConnectorConfig

      protected abstract C getConnectorConfig(Configuration config)
    • getSchema

      protected abstract S getSchema(Configuration config)
    • afterEach

      public void afterEach()
    • shouldApplyDdlStatementsAndRecover

      public void shouldApplyDdlStatementsAndRecover() throws InterruptedException
      Throws:
      InterruptedException
    • shouldIgnoreUnparseableDdlAndRecover

      public void shouldIgnoreUnparseableDdlAndRecover() throws InterruptedException
      Throws:
      InterruptedException
    • shouldFailOnUnparseableDdl

      public void shouldFailOnUnparseableDdl() throws InterruptedException
      Throws:
      InterruptedException
    • shouldLoadSystemAndNonSystemTablesAndConsumeOnlyFilteredDatabases

      public void shouldLoadSystemAndNonSystemTablesAndConsumeOnlyFilteredDatabases() throws InterruptedException
      Throws:
      InterruptedException
    • shouldLoadSystemAndNonSystemTablesAndConsumeAllDatabases

      public void shouldLoadSystemAndNonSystemTablesAndConsumeAllDatabases() throws InterruptedException
      Throws:
      InterruptedException
    • shouldAllowDecimalPrecision

      public void shouldAllowDecimalPrecision()
    • shouldStoreNonCapturedDatabase

      @FixFor("DBZ-3622") public void shouldStoreNonCapturedDatabase()
    • shouldNotStoreNonCapturedDatabase

      @FixFor("DBZ-3622") public void shouldNotStoreNonCapturedDatabase()
    • shouldStoreNonCapturedTable

      @FixFor("DBZ-3622") public void shouldStoreNonCapturedTable()
    • shouldNotStoreNonCapturedTable

      @FixFor("DBZ-3622") public void shouldNotStoreNonCapturedTable()
    • addCommentToSchemaTest

      public void addCommentToSchemaTest()
    • shouldProduceCorrectTableChangesForDropStatement

      @FixFor("DBZ-6945") public void shouldProduceCorrectTableChangesForDropStatement()
    • assertTableSchemaComments

      protected void assertTableSchemaComments(String tableName, String column, String comments)
    • assertTableIncluded

      protected void assertTableIncluded(String fullyQualifiedTableName)
    • assertTableExcluded

      protected void assertTableExcluded(String fullyQualifiedTableName)
    • assertNoTablesExistForDatabase

      protected void assertNoTablesExistForDatabase(String dbName)
    • assertTablesExistForDatabase

      protected void assertTablesExistForDatabase(String dbName)
    • assertHistoryRecorded

      protected void assertHistoryRecorded(Configuration config, P partition, io.debezium.pipeline.spi.OffsetContext offset)
    • printStatements

      protected void printStatements(String dbName, Set<TableId> tables, String ddlStatements)
    • initializePartition

      protected abstract P initializePartition(C connectorConfig, Configuration taskConfig)
    • initializeOffset

      protected abstract O initializeOffset(C connectorConfig)