Package io.debezium.connector.sqlserver
Class AbstractSqlServerDatatypesTest
java.lang.Object
io.debezium.embedded.AbstractConnectorTest
io.debezium.connector.sqlserver.AbstractSqlServerDatatypesTest
- All Implemented Interfaces:
Testing
- Direct Known Subclasses:
DatatypesFromSnapshotIT
Integration test to verify different SQL Server datatypes.
- Author:
- Jiri Pechanec
-
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 static final String[]private static final String[]private static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final List<SchemaAndValueField>private static final List<SchemaAndValueField>private static final List<SchemaAndValueField>private static final List<SchemaAndValueField>private static final intprivate static final List<SchemaAndValueField>private static final List<SchemaAndValueField>(package private) static final StringKey for schema parameter used to store DECIMAL/NUMERIC columns' precision.Fields inherited from class io.debezium.embedded.AbstractConnectorTest
consumedLines, engine, logger, logTestName, OFFSET_STORE_PATH, pollTimeoutInMs, skipTestRule -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidassertRecord(org.apache.kafka.connect.data.Struct record, List<SchemaAndValueField> expected) static voidvoidvoidstatic voidvoidfpTypes()voidinit(TemporalPrecisionMode temporalPrecisionMode) voidintTypes()voidvoidMethods 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, validate, waitForAvailableRecords, waitForConnectorShutdown, waitForNotInitialState, waitForSnapshotToBeCompleted, waitForSnapshotToBeCompleted, waitForStreamingRunning, waitForStreamingRunning, waitTimeForRecords, waitTimeForRecordsAfterNulls
-
Field Details
-
PRECISION_PARAMETER_KEY
Key for schema parameter used to store DECIMAL/NUMERIC columns' precision.- See Also:
-
DDL_STRING
- See Also:
-
DDL_FP
- See Also:
-
DDL_INT
- See Also:
-
DDL_TIME
- See Also:
-
DDL_XML
- See Also:
-
EXPECTED_INT
-
EXPECTED_FP
-
EXPECTED_STRING
-
EXPECTED_DATE_TIME
-
EXPECTED_DATE_TIME_AS_CONNECT
-
EXPECTED_XML
-
ALL_TABLES
-
ALL_DDLS
-
EXPECTED_RECORD_COUNT
private static final int EXPECTED_RECORD_COUNT
-
-
Constructor Details
-
AbstractSqlServerDatatypesTest
public AbstractSqlServerDatatypesTest()
-
-
Method Details
-
dropTables
- Throws:
SQLException
-
createTables
- Throws:
SQLException
-
intTypes
- Throws:
Exception
-
fpTypes
- Throws:
Exception
-
stringTypes
- Throws:
Exception
-
dateTimeTypes
- Throws:
Exception
-
dateTimeTypesAsConnect
- Throws:
Exception
-
otherTypes
- Throws:
Exception
-
assertRecord
private void assertRecord(org.apache.kafka.connect.data.Struct record, List<SchemaAndValueField> expected) -
init
- Throws:
Exception
-