public class ChainedReaderTest extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ChainedReaderTest.CompletingMockReader
A
ChainedReaderTest.MockReader that always returns all records even after this reader is manually stopped. |
static class |
ChainedReaderTest.MockReader
A
Reader that returns records until manually stopped. |
| Modifier and Type | Field and Description |
|---|---|
private io.debezium.connector.mysql.ChainedReader |
reader |
private static List<org.apache.kafka.connect.source.SourceRecord> |
RL1 |
private static List<org.apache.kafka.connect.source.SourceRecord> |
RL2 |
private static List<org.apache.kafka.connect.source.SourceRecord> |
RL3 |
private static List<org.apache.kafka.connect.source.SourceRecord> |
RL4 |
private static List<org.apache.kafka.connect.source.SourceRecord> |
RL5 |
private static List<List<org.apache.kafka.connect.source.SourceRecord>> |
SOURCE_RECORDS |
| Constructor and Description |
|---|
ChainedReaderTest() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
assertPollReturnsNoMoreRecords() |
private static org.apache.kafka.connect.source.SourceRecord |
record() |
protected static Supplier<List<org.apache.kafka.connect.source.SourceRecord>> |
records() |
void |
shouldInitAndDestroyResources() |
void |
shouldNotStartWithoutReaders() |
void |
shouldStartAndStopMultipleReaders() |
void |
shouldStartAndStopReaderThatContinuesProducingItsRecordsAfterBeingStopped() |
void |
shouldStartAndStopSingleReaderBeforeReaderStopsItself() |
void |
shouldStartSingleReaderThatStopsAutomatically() |
private static final List<org.apache.kafka.connect.source.SourceRecord> RL1
private static final List<org.apache.kafka.connect.source.SourceRecord> RL2
private static final List<org.apache.kafka.connect.source.SourceRecord> RL3
private static final List<org.apache.kafka.connect.source.SourceRecord> RL4
private static final List<org.apache.kafka.connect.source.SourceRecord> RL5
private static final List<List<org.apache.kafka.connect.source.SourceRecord>> SOURCE_RECORDS
private io.debezium.connector.mysql.ChainedReader reader
private static org.apache.kafka.connect.source.SourceRecord record()
public void shouldNotStartWithoutReaders()
throws InterruptedException
InterruptedExceptionpublic void shouldStartAndStopSingleReaderBeforeReaderStopsItself()
throws InterruptedException
InterruptedExceptionpublic void shouldStartSingleReaderThatStopsAutomatically()
throws InterruptedException
InterruptedExceptionpublic void shouldStartAndStopMultipleReaders()
throws InterruptedException
InterruptedExceptionpublic void shouldStartAndStopReaderThatContinuesProducingItsRecordsAfterBeingStopped()
throws InterruptedException
InterruptedExceptionprotected void assertPollReturnsNoMoreRecords()
throws InterruptedException
InterruptedExceptionpublic void shouldInitAndDestroyResources()
Copyright © 2020 JBoss by Red Hat. All rights reserved.