Package io.debezium.connector.binlog
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 Summary
FieldsModifier and TypeFieldDescriptionprotected Cprivate final UniqueDatabaseprotected Sprivate static final Stringprivate static final Path -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidprotected voidassertHistoryRecorded(Configuration config, P partition, io.debezium.pipeline.spi.OffsetContext offset) protected voidassertNoTablesExistForDatabase(String dbName) protected voidassertTableExcluded(String fullyQualifiedTableName) protected voidassertTableIncluded(String fullyQualifiedTableName) protected voidassertTableSchemaComments(String tableName, String column, String comments) protected voidassertTablesExistForDatabase(String dbName) voidprotected abstract CgetConnectorConfig(Configuration config) protected abstract SgetSchema(Configuration config) protected abstract OinitializeOffset(C connectorConfig) protected abstract PinitializePartition(C connectorConfig, Configuration taskConfig) protected voidprintStatements(String dbName, Set<TableId> tables, String ddlStatements) voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoid
-
Field Details
-
TEST_FILE_PATH
-
DATABASE
-
SERVER_NAME
- See Also:
-
schema
-
connectorConfig
-
-
Constructor Details
-
BinlogDatabaseSchemaTest
public BinlogDatabaseSchemaTest()
-
-
Method Details
-
beforeEach
public void beforeEach() -
getConnectorConfig
-
getSchema
-
afterEach
public void afterEach() -
shouldApplyDdlStatementsAndRecover
- Throws:
InterruptedException
-
shouldIgnoreUnparseableDdlAndRecover
- Throws:
InterruptedException
-
shouldFailOnUnparseableDdl
- Throws:
InterruptedException
-
shouldLoadSystemAndNonSystemTablesAndConsumeOnlyFilteredDatabases
public void shouldLoadSystemAndNonSystemTablesAndConsumeOnlyFilteredDatabases() throws InterruptedException- Throws:
InterruptedException
-
shouldLoadSystemAndNonSystemTablesAndConsumeAllDatabases
- Throws:
InterruptedException
-
shouldAllowDecimalPrecision
public void shouldAllowDecimalPrecision() -
shouldStoreNonCapturedDatabase
-
shouldNotStoreNonCapturedDatabase
-
shouldStoreNonCapturedTable
-
shouldNotStoreNonCapturedTable
-
addCommentToSchemaTest
public void addCommentToSchemaTest() -
shouldProduceCorrectTableChangesForDropStatement
-
assertTableSchemaComments
-
assertTableIncluded
-
assertTableExcluded
-
assertNoTablesExistForDatabase
-
assertTablesExistForDatabase
-
assertHistoryRecorded
protected void assertHistoryRecorded(Configuration config, P partition, io.debezium.pipeline.spi.OffsetContext offset) -
printStatements
-
initializePartition
-
initializeOffset
-