Class LogMinerQueryBuilderTest
java.lang.Object
io.debezium.connector.oracle.logminer.LogMinerQueryBuilderTest
Unit test for the
LogMinerQueryBuilder.- Author:
- Chris Cranford
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final StringA template that defines the expected SQL output when the configuration specifiesdatabase.history.store.only.captured.tables.ddlisfalse.private static final StringA template that defines the expected SQL output when the configuration specifiesdatabase.history.store.only.captured.tables.ddlistrue.private static final Stringprivate static final Stringprivate io.debezium.connector.oracle.OracleDatabaseSchemaorg.junit.rules.TestRule -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafter()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 StringgetPdbPredicate(io.debezium.connector.oracle.OracleConnectorConfig config) private StringresolveLogMineryContentQueryFromTemplate(io.debezium.connector.oracle.OracleConnectorConfig config, io.debezium.connector.oracle.OracleDatabaseSchema schema, String schemaReplacement, String tableReplacement) voidvoidvoidvoidvoidvoidvoidvoid
-
Field Details
-
skipRule
public org.junit.rules.TestRule skipRule -
OPERATION_CODES_LOB_ENABLED
- See Also:
-
OPERATION_CODES_LOB_DISABLED
- See Also:
-
schema
private io.debezium.connector.oracle.OracleDatabaseSchema schema -
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:
-
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:
-
-
Constructor Details
-
LogMinerQueryBuilderTest
public LogMinerQueryBuilderTest()
-
-
Method Details
-
after
public void after() -
testLogMinerQueryWithNoFilters
-
testLogMinerQueryWithSchemaInclude
-
testLogMinerQueryWithSchemaExclude
-
testLogMinerQueryWithTableInclude
-
testLogMinerQueryWithTableExcludes
-
testLogMinerQueryWithSchemaTableIncludes
-
testLogMinerQueryWithSchemaTableExcludes
-
testLogMinerQueryWithSchemaExcludeTableInclude
-
assertQueryWithConfig
-
assertQueryWithConfig
-
resolveLogMineryContentQueryFromTemplate
-
createSchema
private io.debezium.connector.oracle.OracleDatabaseSchema createSchema(io.debezium.connector.oracle.OracleConnectorConfig connectorConfig) -
getPdbPredicate
-