Package io.debezium.connector.mysql
Class MySqlDecimalIT
java.lang.Object
io.debezium.embedded.AbstractConnectorTest
io.debezium.connector.mysql.MySqlDecimalIT
- All Implemented Interfaces:
Testing
Verify correct DECIMAL handling with different types of io.debezium.relational.RelationalDatabaseConnectorConfig.DecimalHandlingMode.
- Author:
- René Kerner
-
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 Pathprivate static final StringFields inherited from class io.debezium.embedded.AbstractConnectorTest
consumedLines, engine, logger, logTestName, OFFSET_STORE_PATH, pollTimeoutInMs, skipTestRule -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprivate voidassertBigDecimalChangeRecord(org.apache.kafka.connect.source.SourceRecord record) private voidassertDoubleChangeRecord(org.apache.kafka.connect.source.SourceRecord record) private voidassertStringChangeRecord(org.apache.kafka.connect.source.SourceRecord record) voidprivate org.apache.kafka.connect.source.SourceRecordvoidvoidvoidMethods 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, consumeAvailableRecordsByTopic, consumeDmlRecordsByTopic, consumeDmlRecordsByTopic, consumeDmlRecordsByTopic, consumeRecord, consumeRecords, consumeRecords, consumeRecords, consumeRecordsButSkipUntil, consumeRecordsByTopic, consumeRecordsByTopic, consumeRecordsByTopic, consumeRecordsByTopicUntil, consumeRecordsUntil, debug, getConsumer, getMaximumEnqueuedRecordCount, getSnapshotMetricsObjectName, getSnapshotMetricsObjectName, getSnapshotMetricsObjectName, getStreamingMetricsObjectName, getStreamingMetricsObjectName, getStreamingMetricsObjectName, getStreamingMetricsObjectName, getStreamingNamespace, initializeConnectorTestFramework, isStreamingRunning, isStreamingRunning, isStreamingRunning, isStreamingRunning, isTransactionRecord, loggingCompletion, print, readLastCommittedOffset, readLastCommittedOffsets, setConsumeTimeout, skipAvroValidation, start, start, start, start, start, start, start, startAndConsumeTillEnd, startAndConsumeTillEnd, stopConnector, stopConnector, validate, waitForAvailableRecords, waitForConnectorShutdown, waitForNotInitialState, waitForSnapshotToBeCompleted, waitForSnapshotToBeCompleted, waitForSnapshotWithCustomMetricsToBeCompleted, waitForStreamingRunning, waitForStreamingRunning, waitForStreamingRunning, waitForStreamingWithCustomMetricsToStart, waitTimeForRecords, waitTimeForRecordsAfterNulls
-
Field Details
-
TABLE_NAME
- See Also:
-
SCHEMA_HISTORY_PATH
-
DATABASE
-
config
-
-
Constructor Details
-
MySqlDecimalIT
public MySqlDecimalIT()
-
-
Method Details
-
beforeEach
public void beforeEach() -
afterEach
public void afterEach() -
testPreciseDecimalHandlingMode
@FixFor("DBZ-730") public void testPreciseDecimalHandlingMode() throws SQLException, InterruptedException- Throws:
SQLExceptionInterruptedException
-
testDoubleDecimalHandlingMode
@FixFor("DBZ-730") public void testDoubleDecimalHandlingMode() throws SQLException, InterruptedException- Throws:
SQLExceptionInterruptedException
-
testStringDecimalHandlingMode
@FixFor({"DBZ-730","DBZ-4730"}) public void testStringDecimalHandlingMode() throws SQLException, InterruptedException- Throws:
SQLExceptionInterruptedException
-
consumeInsert
- Throws:
InterruptedException
-
assertBigDecimalChangeRecord
private void assertBigDecimalChangeRecord(org.apache.kafka.connect.source.SourceRecord record) -
assertDoubleChangeRecord
private void assertDoubleChangeRecord(org.apache.kafka.connect.source.SourceRecord record) -
assertStringChangeRecord
private void assertStringChangeRecord(org.apache.kafka.connect.source.SourceRecord record)
-