Package io.debezium.connector.oracle
Class OracleClobDataTypeIT
java.lang.Object
io.debezium.embedded.AbstractConnectorTest
io.debezium.connector.oracle.OracleClobDataTypeIT
- All Implemented Interfaces:
Testing
Integration tests for CLOB data type support.
- Author:
- Chris Cranford
-
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 io.debezium.connector.oracle.OracleConnectionprivate static final Stringprivate static final Stringfinal org.junit.rules.TestRuleFields inherited from class io.debezium.embedded.AbstractConnectorTest
consumedLines, engine, isEngineRunning, logger, logTestName, OFFSET_STORE_PATH, pollTimeoutInMs, skipTestRule -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafter()private static org.apache.kafka.connect.data.Structafter(org.apache.kafka.connect.source.SourceRecord record) voidbefore()private static org.apache.kafka.connect.data.Structbefore(org.apache.kafka.connect.source.SourceRecord record) private ClobcreateClob(String data) private NClobcreateNClob(String data) private StringcreateRandomStringWithAlphaNumeric(int length) private static ObjectgetAfterField(org.apache.kafka.connect.source.SourceRecord record, String fieldName) private static ObjectgetBeforeField(org.apache.kafka.connect.source.SourceRecord record, String fieldName) private static StringgetClobString(Clob clob) private static Stringprivate static Stringprivate StringreplaceCharAt(String data, int index, char ch) voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidprivate static StringMethods 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, 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, validate, waitForAvailableRecords, waitForConnectorShutdown, waitForSnapshotToBeCompleted, waitForSnapshotToBeCompleted, waitForSnapshotWithCustomMetricsToBeCompleted, waitForStreamingRunning, waitForStreamingRunning, waitForStreamingRunning, waitForStreamingWithCustomMetricsToStart, waitTimeForRecords, waitTimeForRecordsAfterNulls
-
Field Details
-
JSON_DATA
-
JSON_DATA2
-
skipAdapterRule
public final org.junit.rules.TestRule skipAdapterRule -
connection
private io.debezium.connector.oracle.OracleConnection connection
-
-
Constructor Details
-
OracleClobDataTypeIT
public OracleClobDataTypeIT()
-
-
Method Details
-
before
public void before() -
after
- Throws:
Exception
-
shouldSnapshotClobDataTypeValues
- Throws:
Exception
-
shouldStreamInlineClobDataTypeValues
- Throws:
Exception
-
shouldStreamInlineClobDataTypeValuesWithNonClobDataTypeField
@FixFor("DBZ-2948") public void shouldStreamInlineClobDataTypeValuesWithNonClobDataTypeField() throws Exception- Throws:
Exception
-
shouldStreamLargeClobDataTypeValues
- 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","DBZ-5773"}) public void shouldNotStreamAnyChangesWhenLobEraseIsDetected() throws Exception- Throws:
Exception
-
shouldStreamChangesWhenLobEraseIsDetected
@FixFor({"DBZ-2948","DBZ-5773"}) public void shouldStreamChangesWhenLobEraseIsDetected() 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
- Throws:
Exception
-
shouldStreamClobsWrittenInChunkedMode
- Throws:
Exception
-
shouldStreamClobValueWithEscapedSingleQuoteValue
@FixFor({"DBZ-4891","DBZ-4862","DBZ-4994"}) public void shouldStreamClobValueWithEscapedSingleQuoteValue() throws Exception- Throws:
Exception
-
shouldUpdateCommitScnOnLobTransaction
- Throws:
Exception
-
shouldUpdateCommitScnOnNonLobTransactionWithLobEnabled
@FixFor("DBZ-5266") public void shouldUpdateCommitScnOnNonLobTransactionWithLobEnabled() throws Exception- Throws:
Exception
-
shouldUpdateCommitScnOnNonLobTransactionWithLobDisabled
@FixFor("DBZ-5266") public void shouldUpdateCommitScnOnNonLobTransactionWithLobDisabled() throws Exception- Throws:
Exception
-
shouldReselectClobAfterPrimaryKeyChange
- Throws:
Exception
-
shouldReselectClobAfterPrimaryKeyChangeWithRowDeletion
@FixFor("DBZ-5295") public void shouldReselectClobAfterPrimaryKeyChangeWithRowDeletion() throws Exception- Throws:
Exception
-
shouldStreamClobDataDataThatContainsSingleQuotesAtSpecificBoundaries
@FixFor("DBZ-7006") public void shouldStreamClobDataDataThatContainsSingleQuotesAtSpecificBoundaries() throws Exception- Throws:
Exception
-
createRandomStringWithAlphaNumeric
-
replaceCharAt
-
createClob
- Throws:
SQLException
-
createNClob
- Throws:
SQLException
-
part
-
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) -
topicName
-
getClobString
- Throws:
SQLException
-
getBeforeField
-
getAfterField
-