Class AbstractProcessorUnitTest<T extends io.debezium.connector.oracle.logminer.processor.AbstractLogMinerEventProcessor>

java.lang.Object
io.debezium.embedded.AbstractConnectorTest
io.debezium.connector.oracle.logminer.processor.AbstractProcessorUnitTest<T>
All Implemented Interfaces:
Testing
Direct Known Subclasses:
EmbeddedInfinispanProcessorTest, MemoryProcessorTest

public abstract class AbstractProcessorUnitTest<T extends io.debezium.connector.oracle.logminer.processor.AbstractLogMinerEventProcessor> extends AbstractConnectorTest
Abstract class implementation for all unit tests for LogMinerEventProcessor implementations.
Author:
Chris Cranford
  • Field Details

    • TRANSACTION_ID_1

      private static final String TRANSACTION_ID_1
      See Also:
    • TRANSACTION_ID_2

      private static final String TRANSACTION_ID_2
      See Also:
    • TRANSACTION_ID_3

      private static final String TRANSACTION_ID_3
      See Also:
    • skipRule

      public org.junit.rules.TestRule skipRule
    • context

      protected io.debezium.pipeline.source.spi.ChangeEventSource.ChangeEventSourceContext context
    • dispatcher

      protected EventDispatcher<io.debezium.connector.oracle.OraclePartition,TableId> dispatcher
    • schema

      protected io.debezium.connector.oracle.OracleDatabaseSchema schema
    • metrics

      protected io.debezium.connector.oracle.logminer.LogMinerStreamingChangeEventSourceMetrics metrics
    • partition

      protected io.debezium.connector.oracle.OraclePartition partition
    • offsetContext

      protected io.debezium.connector.oracle.OracleOffsetContext offsetContext
    • connection

      protected io.debezium.connector.oracle.OracleConnection connection
  • Constructor Details

    • AbstractProcessorUnitTest

      public AbstractProcessorUnitTest()
  • Method Details

    • before

      public void before() throws Exception
      Throws:
      Exception
    • after

      public void after()
    • getConfig

      protected abstract Configuration.Builder getConfig()
    • getProcessor

      protected abstract T getProcessor(io.debezium.connector.oracle.OracleConnectorConfig connectorConfig)
    • isTransactionAbandonmentSupported

      protected boolean isTransactionAbandonmentSupported()
    • testCacheIsEmpty

      public void testCacheIsEmpty() throws Exception
      Throws:
      Exception
    • testCacheIsNotEmptyWhenTransactionIsAdded

      public void testCacheIsNotEmptyWhenTransactionIsAdded() throws Exception
      Throws:
      Exception
    • testCacheIsEmptyWhenTransactionIsCommitted

      public void testCacheIsEmptyWhenTransactionIsCommitted() throws Exception
      Throws:
      Exception
    • testCacheIsEmptyWhenTransactionIsRolledBack

      public void testCacheIsEmptyWhenTransactionIsRolledBack() throws Exception
      Throws:
      Exception
    • testCacheIsNotEmptyWhenFirstTransactionIsRolledBack

      public void testCacheIsNotEmptyWhenFirstTransactionIsRolledBack() throws Exception
      Throws:
      Exception
    • testCacheIsNotEmptyWhenSecondTransactionIsRolledBack

      public void testCacheIsNotEmptyWhenSecondTransactionIsRolledBack() throws Exception
      Throws:
      Exception
    • testCalculateScnWhenTransactionIsCommitted

      public void testCalculateScnWhenTransactionIsCommitted() throws Exception
      Throws:
      Exception
    • testCalculateScnWhenFirstTransactionIsCommitted

      public void testCalculateScnWhenFirstTransactionIsCommitted() throws Exception
      Throws:
      Exception
    • testCalculateScnWhenSecondTransactionIsCommitted

      public void testCalculateScnWhenSecondTransactionIsCommitted() throws Exception
      Throws:
      Exception
    • testAbandonOneTransaction

      public void testAbandonOneTransaction() throws Exception
      Throws:
      Exception
    • testAbandonTransactionHavingAnotherOne

      public void testAbandonTransactionHavingAnotherOne() throws Exception
      Throws:
      Exception
    • testAbandonTransactionsUsingFallbackBasedOnChangeTime

      @FixFor("DBZ-6355") public void testAbandonTransactionsUsingFallbackBasedOnChangeTime() throws Exception
      Throws:
      Exception
    • createOracleDatabaseSchema

      private io.debezium.connector.oracle.OracleDatabaseSchema createOracleDatabaseSchema() throws Exception
      Throws:
      Exception
    • createOracleConnection

      private io.debezium.connector.oracle.OracleConnection createOracleConnection(boolean singleOptionalValueThrowException) throws Exception
      Throws:
      Exception
    • createMetrics

      private io.debezium.connector.oracle.logminer.LogMinerStreamingChangeEventSourceMetrics createMetrics(io.debezium.connector.oracle.OracleDatabaseSchema schema) throws Exception
      Throws:
      Exception
    • getStartLogMinerEventRow

      private io.debezium.connector.oracle.logminer.events.LogMinerEventRow getStartLogMinerEventRow(io.debezium.connector.oracle.Scn scn, String transactionId)
    • getStartLogMinerEventRow

      private io.debezium.connector.oracle.logminer.events.LogMinerEventRow getStartLogMinerEventRow(io.debezium.connector.oracle.Scn scn, String transactionId, Instant changeTime)
    • getCommitLogMinerEventRow

      private io.debezium.connector.oracle.logminer.events.LogMinerEventRow getCommitLogMinerEventRow(io.debezium.connector.oracle.Scn scn, String transactionId)
    • getRollbackLogMinerEventRow

      private io.debezium.connector.oracle.logminer.events.LogMinerEventRow getRollbackLogMinerEventRow(io.debezium.connector.oracle.Scn scn, String transactionId)
    • getInsertLogMinerEventRow

      private io.debezium.connector.oracle.logminer.events.LogMinerEventRow getInsertLogMinerEventRow(io.debezium.connector.oracle.Scn scn, String transactionId)
    • getInsertLogMinerEventRow

      private io.debezium.connector.oracle.logminer.events.LogMinerEventRow getInsertLogMinerEventRow(io.debezium.connector.oracle.Scn scn, String transactionId, Instant changeTime)