Package io.debezium.connector.mysql
Class MysqlDefaultValueIT
- java.lang.Object
-
- io.debezium.embedded.AbstractConnectorTest
-
- io.debezium.connector.mysql.MysqlDefaultValueIT
-
- All Implemented Interfaces:
Testing
public class MysqlDefaultValueIT extends AbstractConnectorTest
- Author:
- luobo
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.debezium.embedded.AbstractConnectorTest
AbstractConnectorTest.SourceRecords
-
Nested classes/interfaces inherited from interface io.debezium.util.Testing
Testing.Debug, Testing.Files, Testing.InterruptableFunction, Testing.Network, Testing.Print, Testing.Timer
-
-
Field Summary
Fields Modifier and Type Field Description private Configurationconfigprivate UniqueDatabaseDATABASEprivate static PathDB_HISTORY_PATHprivate static intEVENT_COUNT-
Fields inherited from class io.debezium.embedded.AbstractConnectorTest
engine, logger, logTestName, OFFSET_STORE_PATH, pollTimeoutInMs, skipTestRule
-
-
Constructor Summary
Constructors Constructor Description MysqlDefaultValueIT()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterEach()voidalterDateAndTimeTest()private voidassertEmptyFieldValue(org.apache.kafka.connect.source.SourceRecord record, String fieldName)voidbeforeEach()voidbooleanTest()voidcolumnTypeAndDefaultValueChange()voidcolumnTypeChangeResetsDefaultValue()voiddatabaseHistorySaveDefaultValuesTest()voiddateAndTimeTest()voidfloatAndDoubleTest()voidintBooleanTest()voidnumberTest()voidnumericAndDecimalToDecimalTest()voidnumericAndDecimalToDoubleTest()voidrealTest()voidstringTest()voidtimeTypeWithConnectMode()voidtinyIntBooleanTest()voidunsignedBigIntToBigDecimalTest()voidunsignedBigIntToLongTest()voidunsignedBitTest()voidunsignedIntTest()voidunsignedMediumIntTest()voidunsignedSmallIntTest()voidunsignedTinyIntTest()-
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, consumeDmlRecordsByTopic, consumeDmlRecordsByTopic, consumeDmlRecordsByTopic, consumeRecord, consumeRecords, consumeRecords, consumeRecords, consumeRecordsByTopic, consumeRecordsByTopic, consumeRecordsByTopic, debug, getMaximumEnqueuedRecordCount, getSnapshotMetricsObjectName, getStreamingMetricsObjectName, getStreamingMetricsObjectName, getStreamingNamespace, initializeConnectorTestFramework, isStreamingRunning, isStreamingRunning, isTransactionRecord, loggingCompletion, print, readLastCommittedOffset, readLastCommittedOffsets, setConsumeTimeout, skipAvroValidation, start, start, start, start, start, stopConnector, stopConnector, validate, waitForAvailableRecords, waitForConnectorShutdown, waitForSnapshotToBeCompleted, waitForStreamingRunning, waitForStreamingRunning, waitTimeForRecords
-
-
-
-
Field Detail
-
EVENT_COUNT
private static final int EVENT_COUNT
- See Also:
- Constant Field Values
-
DB_HISTORY_PATH
private static final Path DB_HISTORY_PATH
-
DATABASE
private final UniqueDatabase DATABASE
-
config
private Configuration config
-
-
Method Detail
-
beforeEach
public void beforeEach()
-
afterEach
public void afterEach()
-
unsignedTinyIntTest
public void unsignedTinyIntTest() throws InterruptedException- Throws:
InterruptedException
-
unsignedSmallIntTest
public void unsignedSmallIntTest() throws InterruptedException- Throws:
InterruptedException
-
assertEmptyFieldValue
private void assertEmptyFieldValue(org.apache.kafka.connect.source.SourceRecord record, String fieldName)
-
unsignedMediumIntTest
public void unsignedMediumIntTest() throws InterruptedException- Throws:
InterruptedException
-
unsignedIntTest
public void unsignedIntTest() throws InterruptedException- Throws:
InterruptedException
-
unsignedBigIntToLongTest
public void unsignedBigIntToLongTest() throws InterruptedException- Throws:
InterruptedException
-
unsignedBigIntToBigDecimalTest
public void unsignedBigIntToBigDecimalTest() throws InterruptedException- Throws:
InterruptedException
-
stringTest
public void stringTest() throws InterruptedException- Throws:
InterruptedException
-
databaseHistorySaveDefaultValuesTest
public void databaseHistorySaveDefaultValuesTest() throws InterruptedException, SQLException- Throws:
InterruptedExceptionSQLException
-
unsignedBitTest
public void unsignedBitTest() throws InterruptedException- Throws:
InterruptedException
-
booleanTest
public void booleanTest() throws InterruptedException- Throws:
InterruptedException
-
numberTest
public void numberTest() throws InterruptedException- Throws:
InterruptedException
-
floatAndDoubleTest
public void floatAndDoubleTest() throws InterruptedException- Throws:
InterruptedException
-
realTest
public void realTest() throws InterruptedException- Throws:
InterruptedException
-
numericAndDecimalToDoubleTest
public void numericAndDecimalToDoubleTest() throws InterruptedException- Throws:
InterruptedException
-
numericAndDecimalToDecimalTest
public void numericAndDecimalToDecimalTest() throws InterruptedException- Throws:
InterruptedException
-
dateAndTimeTest
public void dateAndTimeTest() throws InterruptedException- Throws:
InterruptedException
-
columnTypeAndDefaultValueChange
@FixFor("DBZ-771") public void columnTypeAndDefaultValueChange() throws Exception
- Throws:
Exception
-
columnTypeChangeResetsDefaultValue
@FixFor({"DBZ-771","DBZ-1321"}) public void columnTypeChangeResetsDefaultValue() throws Exception
- Throws:
Exception
-
-