Class LogMinerQueryBuilderTest
- java.lang.Object
-
- io.debezium.connector.oracle.logminer.LogMinerQueryBuilderTest
-
public class LogMinerQueryBuilderTest extends Object
Unit test for theLogMinerQueryBuilder.- Author:
- Chris Cranford
-
-
Field Summary
Fields Modifier and Type Field Description private static StringLOG_MINER_CONTENT_QUERY_TEMPLATE1A template that defines the expected SQL output when the configuration specifiesdatabase.history.store.only.captured.tables.ddlisfalse.private static StringLOG_MINER_CONTENT_QUERY_TEMPLATE2A template that defines the expected SQL output when the configuration specifiesdatabase.history.store.only.captured.tables.ddlistrue.private static StringOPERATION_CODES_LOB_DISABLEDprivate static StringOPERATION_CODES_LOB_ENABLEDprivate io.debezium.connector.oracle.OracleDatabaseSchemaschemaorg.junit.rules.TestRuleskipRule
-
Constructor Summary
Constructors Constructor Description LogMinerQueryBuilderTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafter()private voidassertQueryWithConfig(Field field1, Object fieldValue1, Field field2, Object fieldValue2, String schemaValue, String tableValue)private voidassertQueryWithConfig(Field field, Object fieldValue, String schemaValue, String tableValue)private io.debezium.connector.oracle.OracleDatabaseSchemacreateSchema(io.debezium.connector.oracle.OracleConnectorConfig connectorConfig)private StringresolveLogMineryContentQueryFromTemplate(io.debezium.connector.oracle.OracleConnectorConfig config, io.debezium.connector.oracle.OracleDatabaseSchema schema, String schemaReplacement, String tableReplacement)voidtestLogMinerQueryWithNoFilters()voidtestLogMinerQueryWithSchemaExclude()voidtestLogMinerQueryWithSchemaExcludeTableInclude()voidtestLogMinerQueryWithSchemaInclude()voidtestLogMinerQueryWithSchemaTableExcludes()voidtestLogMinerQueryWithSchemaTableIncludes()voidtestLogMinerQueryWithTableExcludes()voidtestLogMinerQueryWithTableInclude()
-
-
-
Field Detail
-
skipRule
public org.junit.rules.TestRule skipRule
-
OPERATION_CODES_LOB_ENABLED
private static final String OPERATION_CODES_LOB_ENABLED
- See Also:
- Constant Field Values
-
OPERATION_CODES_LOB_DISABLED
private static final String OPERATION_CODES_LOB_DISABLED
- See Also:
- Constant Field Values
-
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 specifiesdatabase.history.store.only.captured.tables.ddlisfalse.- 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 specifiesdatabase.history.store.only.captured.tables.ddlistrue.- See Also:
- Constant Field Values
-
-
Method Detail
-
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)
-
-