public class UnwrapFromMongoDbEnvelopeTest extends Object
UnwrapFromMongoDbEnvelope. It uses RecordMakers
to assemble source records as the connector would emit them and feeds them to
the SMT.| Modifier and Type | Field and Description |
|---|---|
private static String |
DELIMITER |
private io.debezium.connector.mongodb.Filters |
filters |
private static String |
FLATTEN_STRUCT |
private List<org.apache.kafka.connect.source.SourceRecord> |
produced |
private io.debezium.connector.mongodb.RecordMakers |
recordMakers |
private static String |
SERVER_NAME |
private io.debezium.connector.mongodb.SourceInfo |
source |
private io.debezium.schema.TopicSelector<io.debezium.connector.mongodb.CollectionId> |
topicSelector |
private io.debezium.connector.mongodb.transforms.UnwrapFromMongoDbEnvelope<org.apache.kafka.connect.source.SourceRecord> |
transformation |
| Constructor and Description |
|---|
UnwrapFromMongoDbEnvelopeTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
closeSmt() |
void |
setup() |
void |
shouldFlattenTransformRecordForInsertEvent() |
void |
shouldFlattenWithDelimiterTransformRecordForInsertEvent() |
void |
shouldFlattenWithDelimiterTransformRecordForUpdateEvent() |
void |
shouldGenerateRecordForDeleteEvent() |
void |
shouldGenerateRecordForDeleteEventWithoutTombstone() |
void |
shouldGenerateRecordForUpdateEvent() |
void |
shouldNotFlattenTransformRecordForInsertEvent() |
void |
shouldTransformRecordForInsertEvent() |
void |
shouldTransformRecordForInsertEventWithComplexIdType() |
private static final String SERVER_NAME
private static final String FLATTEN_STRUCT
private static final String DELIMITER
private io.debezium.connector.mongodb.Filters filters
private io.debezium.connector.mongodb.SourceInfo source
private io.debezium.connector.mongodb.RecordMakers recordMakers
private io.debezium.schema.TopicSelector<io.debezium.connector.mongodb.CollectionId> topicSelector
private List<org.apache.kafka.connect.source.SourceRecord> produced
private io.debezium.connector.mongodb.transforms.UnwrapFromMongoDbEnvelope<org.apache.kafka.connect.source.SourceRecord> transformation
public void setup()
public void closeSmt()
public void shouldTransformRecordForInsertEvent()
throws InterruptedException
InterruptedExceptionpublic void shouldTransformRecordForInsertEventWithComplexIdType()
throws InterruptedException
InterruptedExceptionpublic void shouldGenerateRecordForUpdateEvent()
throws InterruptedException
InterruptedException@FixFor(value="DBZ-582") public void shouldGenerateRecordForDeleteEventWithoutTombstone() throws InterruptedException
InterruptedExceptionpublic void shouldGenerateRecordForDeleteEvent()
throws InterruptedException
InterruptedExceptionpublic void shouldNotFlattenTransformRecordForInsertEvent()
throws InterruptedException
InterruptedExceptionpublic void shouldFlattenTransformRecordForInsertEvent()
throws InterruptedException
InterruptedExceptionpublic void shouldFlattenWithDelimiterTransformRecordForInsertEvent()
throws InterruptedException
InterruptedExceptionpublic void shouldFlattenWithDelimiterTransformRecordForUpdateEvent()
throws InterruptedException
InterruptedExceptionCopyright © 2018 JBoss by Red Hat. All rights reserved.