Class MySqlSchemaTest
- java.lang.Object
-
- io.debezium.connector.mysql.legacy.MySqlSchemaTest
-
public class MySqlSchemaTest extends Object
- Author:
- Randall Hauch
-
-
Field Summary
Fields Modifier and Type Field Description private Configuratorbuildprivate io.debezium.connector.mysql.legacy.MySqlSchemamysqlprivate static StringSERVER_NAMEprivate io.debezium.connector.mysql.legacy.SourceInfosourceprivate static PathTEST_FILE_PATH
-
Constructor Summary
Constructors Constructor Description MySqlSchemaTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterEach()protected voidassertHistoryRecorded()protected voidassertNoTablesExistForDatabase(String dbName)protected voidassertTableExcluded(String fullyQualifiedTableName)protected voidassertTableIncluded(String fullyQualifiedTableName)protected voidassertTablesExistForDatabase(String dbName)voidbeforeEach()protected voidprintStatements(String dbName, Set<TableId> tables, String ddlStatements)protected StringreadFile(String classpathResource)voidshouldAllowDecimalPrecision()voidshouldApplyDdlStatementsAndRecover()voidshouldFailOnUnparseableDdl()voidshouldIgnoreUnparseableDdlAndRecover()voidshouldLoadSystemAndNonSystemTablesAndConsumeAllDatabases()voidshouldLoadSystemAndNonSystemTablesAndConsumeOnlyFilteredDatabases()
-
-
-
Field Detail
-
TEST_FILE_PATH
private static final Path TEST_FILE_PATH
-
SERVER_NAME
private static final String SERVER_NAME
- See Also:
- Constant Field Values
-
build
private Configurator build
-
mysql
private io.debezium.connector.mysql.legacy.MySqlSchema mysql
-
source
private io.debezium.connector.mysql.legacy.SourceInfo source
-
-
Method Detail
-
beforeEach
public void beforeEach()
-
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()
-
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()
-
printStatements
protected void printStatements(String dbName, Set<TableId> tables, String ddlStatements)
-
-