Package io.debezium.connector.oracle
Class AbstractOracleDatatypesTest
java.lang.Object
io.debezium.embedded.AbstractConnectorTest
io.debezium.connector.oracle.AbstractOracleDatatypesTest
- All Implemented Interfaces:
Testing
- Direct Known Subclasses:
SnapshotDatatypesIT,StreamingDatatypesIT
Integration test to verify different Oracle 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 io.debezium.connector.oracle.OracleConnectionprivate static final Stringprivate 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>private static final List<SchemaAndValueField>private static final List<SchemaAndValueField>private static final List<SchemaAndValueField>private static final List<SchemaAndValueField>private static final Stringprivate static final org.apache.kafka.connect.data.Schema(package private) static final StringKey for schema parameter used to store DECIMAL/NUMERIC columns' precision.final org.junit.rules.TestRulefinal org.junit.rules.TestRuleFields 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 voidvoidstatic voidprotected abstract Configuration.Builderprotected static voidstatic voidvoidfpTypes()voidvoidvoidprotected abstract voidinit(TemporalPrecisionMode temporalPrecisionMode) protected static voidprotected static voidprotected static voidprotected static voidprotected abstract booleanprotected static voidprotected static voidvoidintTypes()private static Stringvoidvoidvoidvoidprotected static voidMethods 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:
-
NUMBER_SCHEMA
private static final org.apache.kafka.connect.data.Schema NUMBER_SCHEMA -
DDL_STRING
- See Also:
-
DDL_FP
- See Also:
-
DDL_INT
- See Also:
-
DDL_TIME
- See Also:
-
DDL_CLOB
- See Also:
-
DDL_GEOMETRY
- See Also:
-
EXPECTED_STRING
-
EXPECTED_FP
-
EXPECTED_FP_AS_STRING
-
EXPECTED_FP_AS_DOUBLE
-
EXPECTED_INT
-
EXPECTED_TIME
-
EXPECTED_TIME_AS_CONNECT
-
CLOB_JSON
-
NCLOB_JSON
-
EXPECTED_CLOB
-
EXPECTED_CLOB_UPDATE
-
EXPECTED_GEOMETRY
-
ALL_TABLES
-
ALL_DDLS
-
skipAdapterRule
public final org.junit.rules.TestRule skipAdapterRule -
skipApicurioRule
public final org.junit.rules.TestRule skipApicurioRule -
connection
private static io.debezium.connector.oracle.OracleConnection connection
-
-
Constructor Details
-
AbstractOracleDatatypesTest
public AbstractOracleDatatypesTest()
-
-
Method Details
-
beforeClass
- Throws:
SQLException
-
dropTables
- Throws:
SQLException
-
createTables
- Throws:
SQLException
-
getAllTables
-
insertRecordsDuringTest
protected abstract boolean insertRecordsDuringTest() -
connectorConfig
-
init
- Throws:
Exception
-
closeConnection
- Throws:
SQLException
-
stringTypes
- Throws:
Exception
-
fpTypes
- Throws:
Exception
-
fpTypesAsString
- Throws:
Exception
-
fpTypesAsDouble
- Throws:
Exception
-
intTypes
- Throws:
Exception
-
timeTypes
- Throws:
Exception
-
timeTypesAsAdaptiveMicroseconds
- Throws:
Exception
-
timeTypesAsConnect
- Throws:
Exception
-
clobTypes
- Throws:
Exception
-
geometryTypes
- Throws:
Exception
-
insertStringTypes
- Throws:
SQLException
-
insertFpTypes
- Throws:
SQLException
-
insertIntTypes
- Throws:
SQLException
-
insertTimeTypes
- Throws:
SQLException
-
insertClobTypes
- Throws:
SQLException
-
updateClobTypes
- Throws:
Exception
-
insertGeometryTypes
- Throws:
SQLException
-
part
-
assertRecord
private void assertRecord(org.apache.kafka.connect.data.Struct record, List<SchemaAndValueField> expected)
-