Package io.debezium.connector.oracle
Class OracleBlobDataTypesIT
java.lang.Object
io.debezium.embedded.AbstractConnectorTest
io.debezium.connector.oracle.OracleBlobDataTypesIT
- All Implemented Interfaces:
Testing
Integration tests for BLOB 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 static final byte[]private io.debezium.connector.oracle.OracleConnectionfinal 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 BlobcreateBlob(byte[] data) 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 ByteBuffergetByteBufferFromBlob(Blob blob) private static ByteBufferprivate static byte[]part(byte[] buffer, int start, int length) private static byte[]readBinaryData(String pathOnClasspath) voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidprivate 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, 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, waitForConnectorShutdown, waitForEngineShutdown, waitForSnapshotToBeCompleted, waitForSnapshotToBeCompleted, waitForSnapshotWithCustomMetricsToBeCompleted, waitForStreamingRunning, waitForStreamingRunning, waitForStreamingRunning, waitForStreamingWithCustomMetricsToStart, waitTimeForRecords, waitTimeForRecordsAfterNulls
-
Field Details
-
BIN_DATA
private static final byte[] BIN_DATA -
skipAdapterRule
public final org.junit.rules.TestRule skipAdapterRule -
connection
private io.debezium.connector.oracle.OracleConnection connection
-
-
Constructor Details
-
OracleBlobDataTypesIT
public OracleBlobDataTypesIT()
-
-
Method Details
-
before
public void before() -
after
- Throws:
Exception
-
shouldSnapshotBlobDataTypes
- Throws:
Exception
-
shouldStreamSmallBlobDataTypeValues
- Throws:
Exception
-
shouldStreamSmallBlobDataTypeValuesWithNonBlobFields
@FixFor("DBZ-2948") public void shouldStreamSmallBlobDataTypeValuesWithNonBlobFields() throws Exception- Throws:
Exception
-
shouldStreamLargeBlobDataTypeValues
- Throws:
Exception
-
shouldStreamLargeBlobDataTypeValuesWithNonBlobFields
@FixFor("DBZ-2948") public void shouldStreamLargeBlobDataTypeValuesWithNonBlobFields() throws Exception- Throws:
Exception
-
shouldStreamMixedBlobDataTypeValuesWithNonBlobFieldsSameTable
@FixFor("DBZ-2948") public void shouldStreamMixedBlobDataTypeValuesWithNonBlobFieldsSameTable() 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
-
shouldStreamBlobFieldsWithPrimaryKeyChange
- Throws:
Exception
-
shouldReconcileTransactionWhenAllBlobClobAreInitializedAsNull
@FixFor("DBZ-3631") public void shouldReconcileTransactionWhenAllBlobClobAreInitializedAsNull() throws Exception- Throws:
Exception
-
shouldNotEmitBlobFieldValuesWhenLobSupportIsNotEnabled
@FixFor("DBZ-3645") public void shouldNotEmitBlobFieldValuesWhenLobSupportIsNotEnabled() throws Exception- Throws:
Exception
-
shouldStreamNotNullBlobUsingEmptyBlobFunction
- Throws:
Exception
-
shouldStreamBlobsWrittenInChunkedMode
- Throws:
Exception
-
shouldStreamBlobsWrittenInInterleavedChunkedMode
- Throws:
Exception
-
shouldStreamBlobsWrittenInInterleavedChunkedMode2
@FixFor("DBZ-4366") public void shouldStreamBlobsWrittenInInterleavedChunkedMode2() throws Exception- Throws:
Exception
-
shouldStreamBlobsWrittenInInterleavedChunkedMode3
@FixFor("DBZ-4366") public void shouldStreamBlobsWrittenInInterleavedChunkedMode3() throws Exception- Throws:
Exception
-
shouldReselectBlobAfterPrimaryKeyChange
- Throws:
Exception
-
shouldReselectBlobAfterPrimaryKeyChangeWithRowDeletion
@FixFor("DBZ-5295") public void shouldReselectBlobAfterPrimaryKeyChangeWithRowDeletion() throws Exception- Throws:
Exception
-
shouldNotReselectBlobAfterPrimaryKeyChangeColumnExcluded
@FixFor("DBZ-7456") public void shouldNotReselectBlobAfterPrimaryKeyChangeColumnExcluded() throws Exception- Throws:
Exception
-
shouldNotReselectBlobAfterPrimaryKeyChangeWithRowDeletionColumnExcluded
@FixFor("DBZ-7456") public void shouldNotReselectBlobAfterPrimaryKeyChangeWithRowDeletionColumnExcluded() throws Exception- Throws:
Exception
-
part
private static byte[] part(byte[] buffer, int start, int length) -
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
-
readBinaryData
-
createBlob
- Throws:
SQLException
-
getByteBufferFromBlob
- Throws:
SQLException
-
getBeforeField
-
getAfterField
-