Class LogMinerQueryBuilderTest


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

      • skipRule

        public org.junit.rules.TestRule skipRule
      • 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:
        Constant Field Values
      • 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:
        Constant Field Values
    • Constructor Detail

      • LogMinerQueryBuilderTest

        public LogMinerQueryBuilderTest()
    • Method Detail

      • 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()
      • testLogMinerExcludeUsersInQuery

        @FixFor("DBZ-3671")
        public void testLogMinerExcludeUsersInQuery()
      • assertQueryWithConfig

        private void assertQueryWithConfig​(Field field,
                                           Object fieldValue,
                                           String schemaValue,
                                           String tableValue,
                                           String userValue)
      • 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,
                                                                String schemaReplacement,
                                                                String tableReplacement,
                                                                String userNameReplacement)