public abstract class AbstractOracleDatatypesTest extends AbstractConnectorTest
AbstractConnectorTest.SourceRecordsTesting.Debug, Testing.Files, Testing.InterruptableFunction, Testing.Network, Testing.Print, Testing.Timer| Modifier and Type | Field and Description |
|---|---|
private static String[] |
ALL_DDLS |
private static String[] |
ALL_TABLES |
private static io.debezium.connector.oracle.OracleConnection |
connection |
private static String |
DDL_FP |
private static String |
DDL_INT |
private static String |
DDL_STRING |
private static String |
DDL_TIME |
private static List<SchemaAndValueField> |
EXPECTED_FP |
private static List<SchemaAndValueField> |
EXPECTED_FP_AS_DOUBLE |
private static List<SchemaAndValueField> |
EXPECTED_FP_AS_STRING |
private static List<SchemaAndValueField> |
EXPECTED_INT |
private static List<SchemaAndValueField> |
EXPECTED_STRING |
private static List<SchemaAndValueField> |
EXPECTED_TIME |
private static List<SchemaAndValueField> |
EXPECTED_TIME_AS_CONNECT |
private static org.apache.kafka.connect.data.Schema |
NUMBER_SCHEMA |
(package private) static String |
PRECISION_PARAMETER_KEY
Key for schema parameter used to store DECIMAL/NUMERIC columns' precision.
|
engine, logger, logTestName, OFFSET_STORE_PATH, pollTimeoutInMs, skipTestRule| Constructor and Description |
|---|
AbstractOracleDatatypesTest() |
| Modifier and Type | Method and Description |
|---|---|
private void |
assertRecord(org.apache.kafka.connect.data.Struct record,
List<SchemaAndValueField> expected) |
static void |
beforeClass() |
static void |
closeConnection() |
protected abstract Configuration.Builder |
connectorConfig() |
protected static void |
createTables() |
static void |
dropTables() |
void |
fpTypes() |
void |
fpTypesAsDouble() |
void |
fpTypesAsString() |
protected List<String> |
getAllTables() |
protected abstract void |
init(TemporalPrecisionMode temporalPrecisionMode) |
protected static void |
insertFpTypes() |
protected static void |
insertIntTypes() |
protected abstract boolean |
insertRecordsDuringTest() |
protected static void |
insertStringTypes() |
protected static void |
insertTimeTypes() |
void |
intTypes() |
void |
stringTypes() |
void |
timeTypes() |
void |
timeTypesAsAdaptiveMicroseconds() |
void |
timeTypesAsConnect() |
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, stopConnector, stopConnector, validate, waitForAvailableRecords, waitForConnectorShutdown, waitForSnapshotToBeCompleted, waitForStreamingRunning, waitForStreamingRunning, waitTimeForRecordsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdebug, once, once, print, print, printError, printError, printError, resetBeforeEachTest, time, timestatic final String PRECISION_PARAMETER_KEY
private static final org.apache.kafka.connect.data.Schema NUMBER_SCHEMA
private static final String DDL_STRING
private static final String DDL_FP
private static final String DDL_INT
private static final String DDL_TIME
private static final List<SchemaAndValueField> EXPECTED_STRING
private static final List<SchemaAndValueField> EXPECTED_FP
private static final List<SchemaAndValueField> EXPECTED_FP_AS_STRING
private static final List<SchemaAndValueField> EXPECTED_FP_AS_DOUBLE
private static final List<SchemaAndValueField> EXPECTED_INT
private static final List<SchemaAndValueField> EXPECTED_TIME
private static final List<SchemaAndValueField> EXPECTED_TIME_AS_CONNECT
private static final String[] ALL_TABLES
private static final String[] ALL_DDLS
private static io.debezium.connector.oracle.OracleConnection connection
public static void beforeClass()
throws SQLException
SQLExceptionpublic static void dropTables()
throws SQLException
SQLExceptionprotected static void createTables()
throws SQLException
SQLExceptionprotected abstract boolean insertRecordsDuringTest()
protected abstract Configuration.Builder connectorConfig()
protected abstract void init(TemporalPrecisionMode temporalPrecisionMode) throws Exception
Exceptionpublic static void closeConnection()
throws SQLException
SQLException@FixFor(value="DBZ-1552") public void fpTypesAsString() throws Exception
Exception@FixFor(value="DBZ-1552") public void fpTypesAsDouble() throws Exception
Exception@FixFor(value="DBZ-3268") public void timeTypesAsAdaptiveMicroseconds() throws Exception
Exception@FixFor(value="DBZ-3268") public void timeTypesAsConnect() throws Exception
Exceptionprotected static void insertStringTypes()
throws SQLException
SQLExceptionprotected static void insertFpTypes()
throws SQLException
SQLExceptionprotected static void insertIntTypes()
throws SQLException
SQLExceptionprotected static void insertTimeTypes()
throws SQLException
SQLExceptionprivate void assertRecord(org.apache.kafka.connect.data.Struct record,
List<SchemaAndValueField> expected)
Copyright © 2021 JBoss by Red Hat. All rights reserved.