Package io.debezium.connector.mysql
Class MySqlTinyIntIT
- java.lang.Object
-
- io.debezium.embedded.AbstractConnectorTest
-
- io.debezium.connector.mysql.MySqlTinyIntIT
-
- All Implemented Interfaces:
Testing
public class MySqlTinyIntIT extends AbstractConnectorTest
Verify correct range of TINYINT.- Author:
- Jiri Pechanec
-
-
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_PATH-
Fields inherited from class io.debezium.embedded.AbstractConnectorTest
engine, logger, logTestName, OFFSET_STORE_PATH, pollTimeoutInMs, skipTestRule
-
-
Constructor Summary
Constructors Constructor Description MySqlTinyIntIT()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterEach()private voidassertBooleanChangeRecord()private voidassertDefaultValueBooleanChangeRecord()private voidassertIntChangeRecord()voidbeforeEach()private voidconsumeInitial()voidshouldDefaultValueForTinyIntOneAsBoolean()voidshouldHandleTinyIntAsNumber()voidshouldHandleTinyIntOneAsBoolean()-
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, startAndConsumeTillEnd, startAndConsumeTillEnd, stopConnector, stopConnector, validate, waitForAvailableRecords, waitForConnectorShutdown, waitForSnapshotToBeCompleted, waitForStreamingRunning, waitForStreamingRunning, waitTimeForRecords, waitTimeForRecordsAfterNulls
-
-
-
-
Field Detail
-
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()
-
shouldHandleTinyIntAsNumber
@FixFor("DBZ-1773") public void shouldHandleTinyIntAsNumber() throws SQLException, InterruptedException
- Throws:
SQLExceptionInterruptedException
-
shouldHandleTinyIntOneAsBoolean
@FixFor("DBZ-1800") public void shouldHandleTinyIntOneAsBoolean() throws SQLException, InterruptedException
- Throws:
SQLExceptionInterruptedException
-
shouldDefaultValueForTinyIntOneAsBoolean
@FixFor("DBZ-2085") public void shouldDefaultValueForTinyIntOneAsBoolean() throws SQLException, InterruptedException
- Throws:
SQLExceptionInterruptedException
-
consumeInitial
private void consumeInitial() throws InterruptedException- Throws:
InterruptedException
-
assertIntChangeRecord
private void assertIntChangeRecord() throws InterruptedException- Throws:
InterruptedException
-
assertBooleanChangeRecord
private void assertBooleanChangeRecord() throws InterruptedException- Throws:
InterruptedException
-
assertDefaultValueBooleanChangeRecord
private void assertDefaultValueBooleanChangeRecord() throws InterruptedException- Throws:
InterruptedException
-
-