public class ExtractNewDocumentStateTest extends Object
ExtractNewDocumentState. 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 |
ADD_SOURCE_FIELDS |
private static String |
DELIMITER |
private static String |
DROP_TOMBSTONE |
org.junit.rules.ExpectedException |
exceptionRule |
private io.debezium.connector.mongodb.Filters |
filters |
private static String |
FLATTEN_STRUCT |
private static String |
HANDLE_DELETES |
private static String |
OPERATION_HEADER |
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.ExtractNewDocumentState<org.apache.kafka.connect.source.SourceRecord> |
transformation |
| Constructor and Description |
|---|
ExtractNewDocumentStateTest() |
private static final String SERVER_NAME
private static final String FLATTEN_STRUCT
private static final String DELIMITER
private static final String OPERATION_HEADER
private static final String HANDLE_DELETES
private static final String DROP_TOMBSTONE
private static final String ADD_SOURCE_FIELDS
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.ExtractNewDocumentState<org.apache.kafka.connect.source.SourceRecord> transformation
public org.junit.rules.ExpectedException exceptionRule
public void setup()
public void closeSmt()
@FixFor(value="DBZ-1442") public void shouldAddSourceFields() throws InterruptedException
InterruptedException@FixFor(value="DBZ-1442") public void shouldAddSourceFieldsForRewriteDeleteEvent() throws InterruptedException
InterruptedException@FixFor(value="DBZ-1430") public void shouldDropMessagesWithoutDebeziumCdcEnvelopeDueToMissingSchemaName()
@FixFor(value="DBZ-1430") public void shouldDropMessagesWithoutDebeziumCdcEnvelopeDueToMissingSchemaNameSuffix()
@FixFor(value="DBZ-1430") public void shouldDropMessagesWithoutDebeziumCdcEnvelopeDueToMissingValueSchema()
@FixFor(value="DBZ-1430") public void shouldFailWhenTheSchemaLooksValidButDoesNotHaveTheCorrectFields()
public void shouldTransformRecordForInsertEvent()
throws InterruptedException
InterruptedExceptionpublic void shouldTransformRecordForInsertEventWithComplexIdType()
throws InterruptedException
InterruptedExceptionpublic void shouldGenerateRecordForUpdateEvent()
throws InterruptedException
InterruptedException@FixFor(value="DBZ-612") public void shouldGenerateRecordForUpdateEventWithUnset() throws InterruptedException
InterruptedException@FixFor(value="DBZ-612") public void shouldGenerateRecordForUnsetOnlyUpdateEvent() throws InterruptedException
InterruptedException@FixFor(value="DBZ-582") public void shouldGenerateRecordForDeleteEventWithoutTombstone() throws InterruptedException
InterruptedException@FixFor(value="DBZ-1032") public void shouldGenerateRecordHeaderForTombstone() throws InterruptedException
InterruptedException@FixFor(value="DBZ-583") public void shouldDropDeleteMessagesByDefault() throws InterruptedException
InterruptedException@FixFor(value="DBZ-583") public void shouldRewriteDeleteMessage() throws InterruptedException
InterruptedException@FixFor(value="DBZ-583") public void shouldRewriteMessagesWhichAreNotDeletes() throws InterruptedException
InterruptedExceptionpublic void shouldGenerateRecordForDeleteEvent()
throws InterruptedException
InterruptedException@FixFor(value="DBZ-971") public void shouldPropagatePreviousRecordHeaders() throws InterruptedException
InterruptedExceptionpublic void shouldNotFlattenTransformRecordForInsertEvent()
throws InterruptedException
InterruptedExceptionpublic void shouldFlattenTransformRecordForInsertEvent()
throws InterruptedException
InterruptedExceptionpublic void shouldFlattenWithDelimiterTransformRecordForInsertEvent()
throws InterruptedException
InterruptedExceptionpublic void shouldFlattenWithDelimiterTransformRecordForUpdateEvent()
throws InterruptedException
InterruptedException@FixFor(value="DBZ-677") public void canUseDeprecatedSmt() throws InterruptedException
InterruptedExceptionCopyright © 2019 JBoss by Red Hat. All rights reserved.