Package io.debezium.connector.oracle
Class OracleClobDataTypeIT
- java.lang.Object
-
- io.debezium.embedded.AbstractConnectorTest
-
- io.debezium.connector.oracle.OracleClobDataTypeIT
-
- All Implemented Interfaces:
Testing
public class OracleClobDataTypeIT extends AbstractConnectorTest
Integration tests for CLOB data type support.- Author:
- Chris Cranford
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.debezium.embedded.AbstractConnectorTest
AbstractConnectorTest.SourceRecords
-
Nested classes/interfaces inherited from interface io.debezium.util.Testing
Testing.Debug, Testing.Files, Testing.InterruptableFunction, Testing.Network, Testing.Print, Testing.Timer
-
-
Field Summary
Fields Modifier and Type Field Description private io.debezium.connector.oracle.OracleConnectionconnectionprivate static StringJSON_DATAprivate static StringJSON_DATA2org.junit.rules.TestRuleskipAdapterRule-
Fields inherited from class io.debezium.embedded.AbstractConnectorTest
engine, logger, logTestName, OFFSET_STORE_PATH, pollTimeoutInMs, skipTestRule
-
-
Constructor Summary
Constructors Constructor Description OracleClobDataTypeIT()
-
Method Summary
-
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, 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, startAndConsumeTillEnd, startAndConsumeTillEnd, stopConnector, stopConnector, validate, waitForAvailableRecords, waitForConnectorShutdown, waitForSnapshotToBeCompleted, waitForStreamingRunning, waitForStreamingRunning, waitTimeForRecords, waitTimeForRecordsAfterNulls
-
-
-
-
Method Detail
-
before
public void before()
-
shouldSnapshotClobDataTypeValues
@FixFor("DBZ-2948") public void shouldSnapshotClobDataTypeValues() throws Exception
- Throws:
Exception
-
shouldStreamInlineClobDataTypeValues
@FixFor("DBZ-2948") public void shouldStreamInlineClobDataTypeValues() throws Exception
- Throws:
Exception
-
shouldStreamInlineClobDataTypeValuesWithNonClobDataTypeField
@FixFor("DBZ-2948") public void shouldStreamInlineClobDataTypeValuesWithNonClobDataTypeField() throws Exception
- Throws:
Exception
-
shouldStreamLargeClobDataTypeValues
@FixFor("DBZ-2948") public void shouldStreamLargeClobDataTypeValues() throws Exception
- Throws:
Exception
-
shouldStreamLargeClobDataTypeValuesWithNonClobDataTypeField
@FixFor("DBZ-2948") public void shouldStreamLargeClobDataTypeValuesWithNonClobDataTypeField() throws Exception
- Throws:
Exception
-
shouldStreamMixedClobDataTypeValuesWithNonClobFieldsSameTable
@FixFor("DBZ-2948") public void shouldStreamMixedClobDataTypeValuesWithNonClobFieldsSameTable() throws Exception
- Throws:
Exception
-
shouldNotStreamAnyChangesWhenLobEraseIsDetected
@FixFor("DBZ-2948") public void shouldNotStreamAnyChangesWhenLobEraseIsDetected() throws Exception
- Throws:
Exception
-
shouldStreamClobDataTypeValuesWithPrimaryKeyChange
@FixFor("DBZ-2948") public void shouldStreamClobDataTypeValuesWithPrimaryKeyChange() throws Exception
- Throws:
Exception
-
shouldStreamClobDataTypeValuesUsingBasicFileStorage
@FixFor("DBZ-2948") public void shouldStreamClobDataTypeValuesUsingBasicFileStorage() throws Exception
- Throws:
Exception
-
shouldReconcileTransactionWhenAllBlobClobAreInitializedAsNull
@FixFor("DBZ-3631") public void shouldReconcileTransactionWhenAllBlobClobAreInitializedAsNull() throws Exception
- Throws:
Exception
-
shouldNotEmitClobFieldValuesWhenLobSupportIsNotEnabled
@FixFor("DBZ-3645") public void shouldNotEmitClobFieldValuesWhenLobSupportIsNotEnabled() throws Exception
- Throws:
Exception
-
shouldStreamNotNullClobUsingEmptyClobFunction
@FixFor("DBZ-3893") public void shouldStreamNotNullClobUsingEmptyClobFunction() throws Exception
- Throws:
Exception
-
shouldStreamClobWithUnavailableColumnValuePlaceholder
@FixFor("DBZ-4276") public void shouldStreamClobWithUnavailableColumnValuePlaceholder() throws Exception
- Throws:
Exception
-
createClob
private Clob createClob(String data) throws SQLException
- Throws:
SQLException
-
createNClob
private NClob createNClob(String data) throws SQLException
- Throws:
SQLException
-
before
private static org.apache.kafka.connect.data.Struct before(org.apache.kafka.connect.source.SourceRecord record)
-
after
private static org.apache.kafka.connect.data.Struct after(org.apache.kafka.connect.source.SourceRecord record)
-
getClobString
private static String getClobString(Clob clob) throws SQLException
- Throws:
SQLException
-
getUnavailableValuePlaceholder
private static String getUnavailableValuePlaceholder(Configuration config)
-
getBeforeField
private static Object getBeforeField(org.apache.kafka.connect.source.SourceRecord record, String fieldName)
-
-