Class ChainedReaderTest
- java.lang.Object
-
- io.debezium.connector.mysql.legacy.ChainedReaderTest
-
public class ChainedReaderTest extends Object
- Author:
- Randall Hauch
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classChainedReaderTest.CompletingMockReaderAChainedReaderTest.MockReaderthat always returns all records even after this reader is manually stopped.static classChainedReaderTest.MockReaderAReaderthat returns records until manually stopped.
-
Field Summary
Fields Modifier and Type Field Description private io.debezium.connector.mysql.legacy.ChainedReaderreaderprivate static List<org.apache.kafka.connect.source.SourceRecord>RL1private static List<org.apache.kafka.connect.source.SourceRecord>RL2private static List<org.apache.kafka.connect.source.SourceRecord>RL3private static List<org.apache.kafka.connect.source.SourceRecord>RL4private static List<org.apache.kafka.connect.source.SourceRecord>RL5private static List<List<org.apache.kafka.connect.source.SourceRecord>>SOURCE_RECORDS
-
Constructor Summary
Constructors Constructor Description ChainedReaderTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidassertPollReturnsNoMoreRecords()private static org.apache.kafka.connect.source.SourceRecordrecord()protected static Supplier<List<org.apache.kafka.connect.source.SourceRecord>>records()voidshouldInitAndDestroyResources()voidshouldNotStartWithoutReaders()voidshouldStartAndStopMultipleReaders()voidshouldStartAndStopReaderThatContinuesProducingItsRecordsAfterBeingStopped()voidshouldStartAndStopSingleReaderBeforeReaderStopsItself()voidshouldStartSingleReaderThatStopsAutomatically()
-
-
-
Field Detail
-
RL1
private static final List<org.apache.kafka.connect.source.SourceRecord> RL1
-
RL2
private static final List<org.apache.kafka.connect.source.SourceRecord> RL2
-
RL3
private static final List<org.apache.kafka.connect.source.SourceRecord> RL3
-
RL4
private static final List<org.apache.kafka.connect.source.SourceRecord> RL4
-
RL5
private static final List<org.apache.kafka.connect.source.SourceRecord> RL5
-
SOURCE_RECORDS
private static final List<List<org.apache.kafka.connect.source.SourceRecord>> SOURCE_RECORDS
-
reader
private io.debezium.connector.mysql.legacy.ChainedReader reader
-
-
Method Detail
-
record
private static org.apache.kafka.connect.source.SourceRecord record()
-
shouldNotStartWithoutReaders
public void shouldNotStartWithoutReaders() throws InterruptedException- Throws:
InterruptedException
-
shouldStartAndStopSingleReaderBeforeReaderStopsItself
public void shouldStartAndStopSingleReaderBeforeReaderStopsItself() throws InterruptedException- Throws:
InterruptedException
-
shouldStartSingleReaderThatStopsAutomatically
public void shouldStartSingleReaderThatStopsAutomatically() throws InterruptedException- Throws:
InterruptedException
-
shouldStartAndStopMultipleReaders
public void shouldStartAndStopMultipleReaders() throws InterruptedException- Throws:
InterruptedException
-
shouldStartAndStopReaderThatContinuesProducingItsRecordsAfterBeingStopped
public void shouldStartAndStopReaderThatContinuesProducingItsRecordsAfterBeingStopped() throws InterruptedException- Throws:
InterruptedException
-
assertPollReturnsNoMoreRecords
protected void assertPollReturnsNoMoreRecords() throws InterruptedException- Throws:
InterruptedException
-
shouldInitAndDestroyResources
public void shouldInitAndDestroyResources()
-
-