Class OracleClobDataTypeIT

  • All Implemented Interfaces:
    Testing

    public class OracleClobDataTypeIT
    extends AbstractConnectorTest
    Integration tests for CLOB data type support.
    Author:
    Chris Cranford
    • Field Detail

      • 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 Detail

      • OracleClobDataTypeIT

        public OracleClobDataTypeIT()
    • 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
      • 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)
      • 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)