public class SQLServerNumericColumnIT extends AbstractConnectorTest
AbstractConnectorTest.SourceRecordsTesting.Debug, Testing.Files, Testing.InterruptableFunction, Testing.Network, Testing.Print, Testing.Timer| Modifier and Type | Field and Description |
|---|---|
private io.debezium.connector.sqlserver.SqlServerConnection |
connection |
engine, logger, logTestName, NO_MONITORED_TABLES_WARNING, OFFSET_STORE_PATH, pollTimeoutInMs, skipTestRule| Constructor and Description |
|---|
SQLServerNumericColumnIT() |
| Modifier and Type | Method and Description |
|---|---|
void |
after() |
private void |
assertSchema(org.apache.kafka.connect.data.Struct valueA,
org.apache.kafka.connect.data.Schema expected) |
void |
before()
Create 2 Tables.
|
void |
decimalModeConfigDouble()
Insert 1 Record into tablenumb with
DecimalHandlingMode.DOUBLE
mode Assertions: - Connector is running - 1 Record are streamed out of
cdc - Assert cola, colb, colc, cold are exactly equal to the input values
in double format |
void |
decimalModeConfigPrecise()
Insert 1 Record into tablenumc with
DecimalHandlingMode.PRECISE
mode Assertions: - Connector is running - 1 Record are streamed out of
cdc - Assert cola, colb, colc, cold are bytes |
void |
decimalModeConfigString()
Insert 1 Record into tablenuma with
DecimalHandlingMode.STRING
mode Assertions: - Connector is running - 1 Record are streamed out of
cdc - Assert cola, colb, colc, cold are exactly equal to the input
values. |
assertBeginTransaction, assertConfigurationErrors, assertConfigurationErrors, assertConfigurationErrors, assertConnectorIsRunning, assertConnectorNotRunning, assertDelete, assertEndTransaction, assertEngineIsRunning, assertHasNoSourceQuery, assertInsert, assertKey, assertNoConfigurationErrors, assertNoRecordsToConsume, assertOffset, assertOffset, assertRecordTransactionMetadata, assertSchemaMatchesStruct, assertSchemaMatchesStruct, assertSourceQuery, assertTombstone, assertTombstone, assertUpdate, assertValueField, configValue, consumeAvailableRecords, consumeRecord, consumeRecords, consumeRecords, consumeRecords, consumeRecordsByTopic, consumeRecordsByTopic, consumeRecordsByTopic, debug, getMaximumEnqueuedRecordCount, getSnapshotMetricsObjectName, getStreamingMetricsObjectName, getStreamingMetricsObjectName, initializeConnectorTestFramework, loggingCompletion, print, readLastCommittedOffset, readLastCommittedOffsets, setConsumeTimeout, start, start, start, start, stopConnector, stopConnector, validate, waitForAvailableRecords, waitForSnapshotToBeCompleted, waitForStreamingRunning, waitForStreamingRunningclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdebug, once, once, print, print, printError, printError, printError, resetBeforeEachTest, time, timepublic void before()
throws SQLException
SQLExceptionpublic void after()
throws SQLException
SQLExceptionpublic void decimalModeConfigString()
throws Exception
DecimalHandlingMode.STRING
mode Assertions: - Connector is running - 1 Record are streamed out of
cdc - Assert cola, colb, colc, cold are exactly equal to the input
values.Exceptionpublic void decimalModeConfigDouble()
throws Exception
DecimalHandlingMode.DOUBLE
mode Assertions: - Connector is running - 1 Record are streamed out of
cdc - Assert cola, colb, colc, cold are exactly equal to the input values
in double formatExceptionpublic void decimalModeConfigPrecise()
throws Exception
DecimalHandlingMode.PRECISE
mode Assertions: - Connector is running - 1 Record are streamed out of
cdc - Assert cola, colb, colc, cold are bytesExceptionprivate void assertSchema(org.apache.kafka.connect.data.Struct valueA,
org.apache.kafka.connect.data.Schema expected)
Copyright © 2020 JBoss by Red Hat. All rights reserved.