Class OracleBlobDataTypesIT

java.lang.Object
io.debezium.embedded.AbstractConnectorTest
io.debezium.connector.oracle.OracleBlobDataTypesIT
All Implemented Interfaces:
Testing

public class OracleBlobDataTypesIT extends AbstractConnectorTest
Integration tests for BLOB data type support.
Author:
Chris Cranford
  • 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

      public void after() throws Exception
      Throws:
      Exception
    • shouldSnapshotBlobDataTypes

      @FixFor("DBZ-2948") public void shouldSnapshotBlobDataTypes() throws Exception
      Throws:
      Exception
    • shouldStreamSmallBlobDataTypeValues

      @FixFor("DBZ-2948") public void shouldStreamSmallBlobDataTypeValues() throws Exception
      Throws:
      Exception
    • shouldStreamSmallBlobDataTypeValuesWithNonBlobFields

      @FixFor("DBZ-2948") public void shouldStreamSmallBlobDataTypeValuesWithNonBlobFields() throws Exception
      Throws:
      Exception
    • shouldStreamLargeBlobDataTypeValues

      @FixFor("DBZ-2948") public void shouldStreamLargeBlobDataTypeValues() throws Exception
      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") public void shouldNotStreamAnyChangesWhenLobEraseIsDetected() throws Exception
      Throws:
      Exception
    • shouldStreamBlobFieldsWithPrimaryKeyChange

      @FixFor("DBZ-2948") public void shouldStreamBlobFieldsWithPrimaryKeyChange() throws Exception
      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

      @FixFor("DBZ-3893") public void shouldStreamNotNullBlobUsingEmptyBlobFunction() throws Exception
      Throws:
      Exception
    • shouldStreamBlobWithUnavailableColumnValuePlaceholder

      @FixFor("DBZ-4276") public void shouldStreamBlobWithUnavailableColumnValuePlaceholder() throws Exception
      Throws:
      Exception
    • shouldStreamBlobsWrittenInChunkedMode

      @FixFor("DBZ-4366") public void shouldStreamBlobsWrittenInChunkedMode() throws Exception
      Throws:
      Exception
    • shouldStreamBlobsWrittenInInterleavedChunkedMode

      @FixFor("DBZ-4366") public void shouldStreamBlobsWrittenInInterleavedChunkedMode() throws Exception
      Throws:
      Exception
    • shouldStreamBlobsWrittenInInterleavedChunkedMode2

      @FixFor("DBZ-4366") public void shouldStreamBlobsWrittenInInterleavedChunkedMode2() throws Exception
      Throws:
      Exception
    • shouldStreamBlobsWrittenInInterleavedChunkedMode3

      @FixFor("DBZ-4366") public void shouldStreamBlobsWrittenInInterleavedChunkedMode3() 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

      private static String topicName(String tableName)
    • readBinaryData

      private static byte[] readBinaryData(String pathOnClasspath)
    • createBlob

      private Blob createBlob(byte[] data) throws SQLException
      Throws:
      SQLException
    • getByteBufferFromBlob

      private static ByteBuffer getByteBufferFromBlob(Blob blob) throws SQLException
      Throws:
      SQLException
    • getUnavailableValuePlaceholder

      private static ByteBuffer getUnavailableValuePlaceholder(Configuration config)
    • getBeforeField

      private static Object getBeforeField(org.apache.kafka.connect.source.SourceRecord record, String fieldName)
    • getAfterField

      private static Object getAfterField(org.apache.kafka.connect.source.SourceRecord record, String fieldName)