Package io.debezium.connector.mysql
Class MysqlDefaultValueIT
java.lang.Object
io.debezium.embedded.AbstractConnectorTest
io.debezium.connector.mysql.MysqlDefaultValueIT
- All Implemented Interfaces:
Testing
- Author:
- luobo
-
Nested Class Summary
Nested classes/interfaces inherited from class io.debezium.embedded.AbstractConnectorTest
AbstractConnectorTest.SourceRecordsNested classes/interfaces inherited from interface io.debezium.util.Testing
Testing.Debug, Testing.Files, Testing.InterruptableFunction, Testing.Network, Testing.Print, Testing.Timer -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Configurationprivate final UniqueDatabaseprivate static final intprivate static final PathFields inherited from class io.debezium.embedded.AbstractConnectorTest
consumedLines, engine, logger, logTestName, OFFSET_STORE_PATH, pollTimeoutInMs, skipTestRule -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidprivate voidassertEmptyFieldValue(org.apache.kafka.connect.source.SourceRecord record, String fieldName) private voidassertFieldDefaultValue(org.apache.kafka.connect.data.Struct value, String fieldName, Object defaultValue) voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidrealTest()voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidprotected voidvalidate(org.apache.kafka.connect.source.SourceRecord record) 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, consumeRecordsButSkipUntil, consumeRecordsByTopic, consumeRecordsByTopic, consumeRecordsByTopic, consumeRecordsByTopicUntil, consumeRecordsUntil, debug, getConsumer, getMaximumEnqueuedRecordCount, getSnapshotMetricsObjectName, getSnapshotMetricsObjectName, getStreamingMetricsObjectName, getStreamingMetricsObjectName, getStreamingNamespace, initializeConnectorTestFramework, isStreamingRunning, isStreamingRunning, isTransactionRecord, loggingCompletion, print, readLastCommittedOffset, readLastCommittedOffsets, setConsumeTimeout, skipAvroValidation, start, start, start, start, start, start, start, startAndConsumeTillEnd, startAndConsumeTillEnd, stopConnector, stopConnector, waitForAvailableRecords, waitForConnectorShutdown, waitForNotInitialState, waitForSnapshotToBeCompleted, waitForSnapshotToBeCompleted, waitForStreamingRunning, waitForStreamingRunning, waitTimeForRecords, waitTimeForRecordsAfterNulls
-
Field Details
-
EVENT_COUNT
private static final int EVENT_COUNT- See Also:
-
SCHEMA_HISTORY_PATH
-
DATABASE
-
config
-
-
Constructor Details
-
MysqlDefaultValueIT
public MysqlDefaultValueIT()
-
-
Method Details
-
beforeEach
public void beforeEach() -
afterEach
public void afterEach() -
validate
protected void validate(org.apache.kafka.connect.source.SourceRecord record) - Overrides:
validatein classAbstractConnectorTest
-
unsignedTinyIntTest
- Throws:
InterruptedException
-
unsignedSmallIntTest
- Throws:
InterruptedException
-
assertEmptyFieldValue
private void assertEmptyFieldValue(org.apache.kafka.connect.source.SourceRecord record, String fieldName) -
unsignedMediumIntTest
- Throws:
InterruptedException
-
unsignedIntTest
- Throws:
InterruptedException
-
unsignedBigIntToLongTest
- Throws:
InterruptedException
-
unsignedBigIntToBigDecimalTest
- Throws:
InterruptedException
-
stringTest
- Throws:
InterruptedException
-
schemaHistorySaveDefaultValuesTest
- Throws:
InterruptedExceptionSQLException
-
unsignedBitTest
- Throws:
InterruptedException
-
booleanTest
- Throws:
InterruptedException
-
numberTest
- Throws:
InterruptedException
-
tinyIntBooleanTest
- Throws:
Exception
-
intBooleanTest
- Throws:
Exception
-
floatAndDoubleTest
- Throws:
InterruptedException
-
realTest
- Throws:
InterruptedException
-
numericAndDecimalToDoubleTest
- Throws:
InterruptedException
-
numericAndDecimalToDecimalTest
- Throws:
InterruptedException
-
dateAndTimeTest
- Throws:
InterruptedException
-
timeTypeWithConnectMode
- Throws:
Exception
-
columnTypeAndDefaultValueChange
- Throws:
Exception
-
columnTypeChangeResetsDefaultValue
- Throws:
Exception
-
alterDateAndTimeTest
- Throws:
Exception
-
shouldConvertDefaultBoolean2Number
- Throws:
Exception
-
shouldConvertDefaultWithCharacterSetIntroducer
- Throws:
Exception
-
assertFieldDefaultValue
-