Class TransactionalBufferTest
- java.lang.Object
-
- io.debezium.connector.oracle.logminer.TransactionalBufferTest
-
public class TransactionalBufferTest extends Object
- Author:
- Andrey Pustovetov
-
-
Field Summary
Fields Modifier and Type Field Description private Clockclockprivate static Configurationconfigprivate static io.debezium.connector.oracle.OracleConnectorConfigconnectorConfigprivate io.debezium.pipeline.EventDispatcher<TableId>dispatcherprivate static io.debezium.connector.oracle.logminer.valueholder.LogMinerDmlEntryDML_ENTRYprivate io.debezium.pipeline.ErrorHandlererrorHandlerprivate static StringMESSAGEprivate static io.debezium.connector.oracle.OracleOffsetContextoffsetContextprivate static StringOTHER_ROW_IDprivate static io.debezium.connector.oracle.ScnOTHER_SCNprivate static StringOTHER_TRANSACTION_IDprivate static StringROW_IDprivate io.debezium.connector.oracle.OracleDatabaseSchemaschemaprivate static io.debezium.connector.oracle.ScnSCNprivate static io.debezium.connector.oracle.ScnSCN_ONEprivate static StringSERVER_NAMEorg.junit.rules.TestRuleskipRuleprivate io.debezium.connector.oracle.OracleStreamingChangeEventSourceMetricsstreamingMetricsprivate static TableIdTABLE_IDprivate io.debezium.connector.oracle.OracleTaskContexttaskContextprivate static TimestampTIMESTAMPprivate static StringTRANSACTION_IDprivate io.debezium.connector.oracle.logminer.TransactionalBuffertransactionalBuffer
-
Constructor Summary
Constructors Constructor Description TransactionalBufferTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafter()voidbefore()private voidregisterDmlOperation(String txId, io.debezium.connector.oracle.Scn scn, String rowId)voidtestAbandoningOneTransaction()voidtestAbandoningTransactionHavingAnotherOne()voidtestCalculateScnWhenFirstTransactionIsCommitted()voidtestCalculateScnWhenSecondTransactionIsCommitted()voidtestCalculateScnWhenTransactionIsCommitted()voidtestIsEmpty()voidtestIsEmptyWhenTransactionIsCommitted()voidtestIsEmptyWhenTransactionIsRolledBack()voidtestIsNotEmptyWhenTransactionIsRegistered()voidtestNonEmptyFirstTransactionIsRolledBack()voidtestNonEmptySecondTransactionIsRolledBack()voidtestTransactionDump()
-
-
-
Field Detail
-
SERVER_NAME
private static final String SERVER_NAME
- See Also:
- Constant Field Values
-
TRANSACTION_ID
private static final String TRANSACTION_ID
- See Also:
- Constant Field Values
-
OTHER_TRANSACTION_ID
private static final String OTHER_TRANSACTION_ID
- See Also:
- Constant Field Values
-
MESSAGE
private static final String MESSAGE
- See Also:
- Constant Field Values
-
SCN_ONE
private static final io.debezium.connector.oracle.Scn SCN_ONE
-
SCN
private static final io.debezium.connector.oracle.Scn SCN
-
OTHER_SCN
private static final io.debezium.connector.oracle.Scn OTHER_SCN
-
TIMESTAMP
private static final Timestamp TIMESTAMP
-
TABLE_ID
private static final TableId TABLE_ID
-
ROW_ID
private static final String ROW_ID
- See Also:
- Constant Field Values
-
OTHER_ROW_ID
private static final String OTHER_ROW_ID
- See Also:
- Constant Field Values
-
DML_ENTRY
private static final io.debezium.connector.oracle.logminer.valueholder.LogMinerDmlEntry DML_ENTRY
-
config
private static final Configuration config
-
connectorConfig
private static final io.debezium.connector.oracle.OracleConnectorConfig connectorConfig
-
offsetContext
private static io.debezium.connector.oracle.OracleOffsetContext offsetContext
-
taskContext
private io.debezium.connector.oracle.OracleTaskContext taskContext
-
errorHandler
private io.debezium.pipeline.ErrorHandler errorHandler
-
transactionalBuffer
private io.debezium.connector.oracle.logminer.TransactionalBuffer transactionalBuffer
-
streamingMetrics
private io.debezium.connector.oracle.OracleStreamingChangeEventSourceMetrics streamingMetrics
-
schema
private io.debezium.connector.oracle.OracleDatabaseSchema schema
-
clock
private Clock clock
-
dispatcher
private io.debezium.pipeline.EventDispatcher<TableId> dispatcher
-
skipRule
public org.junit.rules.TestRule skipRule
-
-
Method Detail
-
before
public void before()
-
after
public void after() throws InterruptedException- Throws:
InterruptedException
-
testIsEmpty
public void testIsEmpty()
-
testIsNotEmptyWhenTransactionIsRegistered
public void testIsNotEmptyWhenTransactionIsRegistered()
-
testIsEmptyWhenTransactionIsCommitted
public void testIsEmptyWhenTransactionIsCommitted() throws InterruptedException- Throws:
InterruptedException
-
testIsEmptyWhenTransactionIsRolledBack
public void testIsEmptyWhenTransactionIsRolledBack()
-
testNonEmptyFirstTransactionIsRolledBack
public void testNonEmptyFirstTransactionIsRolledBack()
-
testNonEmptySecondTransactionIsRolledBack
public void testNonEmptySecondTransactionIsRolledBack()
-
testCalculateScnWhenTransactionIsCommitted
public void testCalculateScnWhenTransactionIsCommitted() throws InterruptedException- Throws:
InterruptedException
-
testCalculateScnWhenFirstTransactionIsCommitted
public void testCalculateScnWhenFirstTransactionIsCommitted() throws InterruptedException- Throws:
InterruptedException
-
testCalculateScnWhenSecondTransactionIsCommitted
public void testCalculateScnWhenSecondTransactionIsCommitted() throws InterruptedException- Throws:
InterruptedException
-
testAbandoningOneTransaction
public void testAbandoningOneTransaction()
-
testAbandoningTransactionHavingAnotherOne
public void testAbandoningTransactionHavingAnotherOne()
-
testTransactionDump
public void testTransactionDump()
-
-