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,DatatypesFromStreamingIT
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 List<SchemaAndValueField> private static final List<SchemaAndValueField> (package private) static final StringKey for schema parameter used to store DECIMAL/NUMERIC columns' precision.private booleanFields inherited from class io.debezium.embedded.AbstractConnectorTest
consumedLines, engine, isEngineRunning, 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 voidprotected static voidvoidvoidprotected static voidstatic voidvoidfpTypes()protected intvoidinit(TemporalPrecisionMode temporalPrecisionMode, boolean useSnapshot) protected static voidprotected static voidprotected static voidprotected static voidprotected static voidvoidintTypes()voidvoidprotected voidvalidateRecord(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, consumeAvailableRecordsByTopic, consumeDmlRecordsByTopic, consumeDmlRecordsByTopic, consumeDmlRecordsByTopic, consumeRecord, consumeRecords, consumeRecords, consumeRecords, consumeRecordsButSkipUntil, consumeRecordsByTopic, consumeRecordsByTopic, consumeRecordsByTopic, consumeRecordsByTopicUntil, consumeRecordsUntil, createEngine, createEngineBuilder, 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, storeOffsets, validate, waitForAvailableRecords, waitForAvailableRecords, waitForConnectorShutdown, waitForEngineShutdown, waitForSnapshotToBeCompleted, waitForSnapshotToBeCompleted, waitForSnapshotWithCustomMetricsToBeCompleted, waitForStreamingRunning, waitForStreamingRunning, waitForStreamingRunning, waitForStreamingWithCustomMetricsToStart, waitTimeForEngine, 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
-
useSnapshot
private boolean useSnapshot
-
-
Constructor Details
-
AbstractSqlServerDatatypesTest
public AbstractSqlServerDatatypesTest()
-
-
Method Details
-
dropTables
- Throws:
SQLException
-
beforeClass
- 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
-
createTables
- Throws:
SQLException
-
insertIntTypes
- Throws:
SQLException
-
insertFpTypes
- Throws:
SQLException
-
insertStringTypes
- Throws:
SQLException
-
insertTimeTypes
- Throws:
SQLException
-
insertXmlTypes
- Throws:
SQLException
-
dropAllTables
- Throws:
SQLException
-
validateRecord
protected void validateRecord(org.apache.kafka.connect.source.SourceRecord record) -
getExpectedRecordCount
protected int getExpectedRecordCount()
-