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

  • All Implemented Interfaces:
    Testing
    Direct Known Subclasses:
    InfinispanProcessorTest, 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 Detail

      • skipRule

        public org.junit.rules.TestRule skipRule
      • context

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

        protected io.debezium.pipeline.EventDispatcher<TableId> dispatcher
      • schema

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

        protected io.debezium.connector.oracle.OracleStreamingChangeEventSourceMetrics metrics
      • offsetContext

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

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

      • AbstractProcessorUnitTest

        public AbstractProcessorUnitTest()
    • Method Detail

      • getProcessor

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

        protected boolean isTransactionAbandonmentSupported()
      • 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
      • createOracleDatabaseSchema

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

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

        private io.debezium.connector.oracle.OracleStreamingChangeEventSourceMetrics 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)