Package io.debezium.connector.mysql
Class MySqlDatabaseSchemaTest
- java.lang.Object
-
- io.debezium.connector.mysql.MySqlDatabaseSchemaTest
-
public class MySqlDatabaseSchemaTest extends Object
- Author:
- Randall Hauch
-
-
Field Summary
Fields Modifier and Type Field Description private io.debezium.connector.mysql.MySqlConnectorConfigconnectorConfigprivate UniqueDatabaseDATABASEprivate io.debezium.connector.mysql.MySqlDatabaseSchemamysqlprivate static StringSERVER_NAMEprivate static PathTEST_FILE_PATH
-
Constructor Summary
Constructors Constructor Description MySqlDatabaseSchemaTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterEach()protected voidassertHistoryRecorded(Configuration config, io.debezium.connector.mysql.MySqlPartition partition, io.debezium.pipeline.spi.OffsetContext offset)protected voidassertNoTablesExistForDatabase(String dbName)protected voidassertTableExcluded(String fullyQualifiedTableName)protected voidassertTableIncluded(String fullyQualifiedTableName)protected voidassertTablesExistForDatabase(String dbName)voidbeforeEach()private io.debezium.connector.mysql.MySqlDatabaseSchemagetSchema(Configuration config)private io.debezium.connector.mysql.MySqlOffsetContextinitializeOffset(io.debezium.connector.mysql.MySqlConnectorConfig connectorConfig)private io.debezium.connector.mysql.MySqlPartitioninitializePartition(io.debezium.connector.mysql.MySqlConnectorConfig connectorConfig)protected voidprintStatements(String dbName, Set<TableId> tables, String ddlStatements)voidshouldAllowDecimalPrecision()voidshouldApplyDdlStatementsAndRecover()voidshouldFailOnUnparseableDdl()voidshouldIgnoreUnparseableDdlAndRecover()voidshouldLoadSystemAndNonSystemTablesAndConsumeAllDatabases()voidshouldLoadSystemAndNonSystemTablesAndConsumeOnlyFilteredDatabases()voidshouldNotStoreNonCapturedDatabase()voidshouldNotStoreNonCapturedTable()voidshouldStoreNonCapturedDatabase()voidshouldStoreNonCapturedTable()
-
-
-
Field Detail
-
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:
- Constant Field Values
-
mysql
private io.debezium.connector.mysql.MySqlDatabaseSchema mysql
-
connectorConfig
private io.debezium.connector.mysql.MySqlConnectorConfig connectorConfig
-
-
Method Detail
-
beforeEach
public void beforeEach()
-
getSchema
private io.debezium.connector.mysql.MySqlDatabaseSchema 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()
-
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, io.debezium.connector.mysql.MySqlPartition partition, io.debezium.pipeline.spi.OffsetContext offset)
-
printStatements
protected void printStatements(String dbName, Set<TableId> tables, String ddlStatements)
-
initializePartition
private io.debezium.connector.mysql.MySqlPartition initializePartition(io.debezium.connector.mysql.MySqlConnectorConfig connectorConfig)
-
initializeOffset
private io.debezium.connector.mysql.MySqlOffsetContext initializeOffset(io.debezium.connector.mysql.MySqlConnectorConfig connectorConfig)
-
-