Class LogMinerQueryBuilderTest

java.lang.Object
io.debezium.connector.oracle.logminer.LogMinerQueryBuilderTest

public class LogMinerQueryBuilderTest extends Object
Unit test for the LogMinerQueryBuilder.
Author:
Chris Cranford
  • Field Details

    • skipRule

      public org.junit.rules.TestRule skipRule
    • OPERATION_CODES_LOB_ENABLED

      private static final String OPERATION_CODES_LOB_ENABLED
      See Also:
    • OPERATION_CODES_LOB_DISABLED

      private static final String OPERATION_CODES_LOB_DISABLED
      See Also:
    • schema

      private io.debezium.connector.oracle.OracleDatabaseSchema schema
    • LOG_MINER_CONTENT_QUERY_TEMPLATE1

      private static final String LOG_MINER_CONTENT_QUERY_TEMPLATE1
      A template that defines the expected SQL output when the configuration specifies database.history.store.only.captured.tables.ddl is false.
      See Also:
    • LOG_MINER_CONTENT_QUERY_TEMPLATE2

      private static final String LOG_MINER_CONTENT_QUERY_TEMPLATE2
      A template that defines the expected SQL output when the configuration specifies database.history.store.only.captured.tables.ddl is true.
      See Also:
  • Constructor Details

    • LogMinerQueryBuilderTest

      public LogMinerQueryBuilderTest()
  • Method Details

    • after

      public void after()
    • testLogMinerQueryWithNoFilters

      @FixFor("DBZ-3009") public void testLogMinerQueryWithNoFilters()
    • testLogMinerQueryWithSchemaInclude

      @FixFor("DBZ-3009") public void testLogMinerQueryWithSchemaInclude()
    • testLogMinerQueryWithSchemaExclude

      @FixFor("DBZ-3009") public void testLogMinerQueryWithSchemaExclude()
    • testLogMinerQueryWithTableInclude

      @FixFor("DBZ-3009") public void testLogMinerQueryWithTableInclude()
    • testLogMinerQueryWithTableExcludes

      @FixFor("DBZ-3009") public void testLogMinerQueryWithTableExcludes()
    • testLogMinerQueryWithSchemaTableIncludes

      @FixFor("DBZ-3009") public void testLogMinerQueryWithSchemaTableIncludes()
    • testLogMinerQueryWithSchemaTableExcludes

      @FixFor("DBZ-3009") public void testLogMinerQueryWithSchemaTableExcludes()
    • testLogMinerQueryWithSchemaExcludeTableInclude

      @FixFor("DBZ-3009") public void testLogMinerQueryWithSchemaExcludeTableInclude()
    • assertQueryWithConfig

      private void assertQueryWithConfig(Field field, Object fieldValue, String schemaValue, String tableValue)
    • assertQueryWithConfig

      private void assertQueryWithConfig(Field field1, Object fieldValue1, Field field2, Object fieldValue2, String schemaValue, String tableValue)
    • resolveLogMineryContentQueryFromTemplate

      private String resolveLogMineryContentQueryFromTemplate(io.debezium.connector.oracle.OracleConnectorConfig config, io.debezium.connector.oracle.OracleDatabaseSchema schema, String schemaReplacement, String tableReplacement)
    • createSchema

      private io.debezium.connector.oracle.OracleDatabaseSchema createSchema(io.debezium.connector.oracle.OracleConnectorConfig connectorConfig)
    • getPdbPredicate

      private String getPdbPredicate(io.debezium.connector.oracle.OracleConnectorConfig config)