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
  • Field Details

    • JSON_DATA

      private static final String JSON_DATA
    • JSON_DATA2

      private static final String 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

      public void after() throws Exception
      Throws:
      Exception
    • 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
    • shouldStreamClobsWrittenInChunkedMode

      @FixFor("DBZ-4366") public void shouldStreamClobsWrittenInChunkedMode() throws Exception
      Throws:
      Exception
    • shouldStreamClobValueWithEscapedSingleQuoteValue

      @FixFor({"DBZ-4891","DBZ-4862","DBZ-4994"}) public void shouldStreamClobValueWithEscapedSingleQuoteValue() throws Exception
      Throws:
      Exception
    • shouldUpdateCommitScnOnLobTransaction

      @FixFor("DBZ-5266") public void shouldUpdateCommitScnOnLobTransaction() throws Exception
      Throws:
      Exception
    • shouldUpdateCommitScnOnNonLobTransactionWithLobEnabled

      @FixFor("DBZ-5266") public void shouldUpdateCommitScnOnNonLobTransactionWithLobEnabled() throws Exception
      Throws:
      Exception
    • shouldUpdateCommitScnOnNonLobTransactionWithLobDisabled

      @FixFor("DBZ-5266") public void shouldUpdateCommitScnOnNonLobTransactionWithLobDisabled() throws Exception
      Throws:
      Exception
    • createClob

      private Clob createClob(String data) throws SQLException
      Throws:
      SQLException
    • createNClob

      private NClob createNClob(String data) throws SQLException
      Throws:
      SQLException
    • part

      private static String part(String text, 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)
    • 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)
    • getAfterField

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