public class FieldRenamesTest extends Object
| Modifier and Type | Field and Description |
|---|---|
private Configurator |
build |
private static String |
PATCH |
private static String |
SERVER_NAME |
private io.debezium.connector.mongodb.SourceInfo |
source |
private io.debezium.schema.TopicSelector<io.debezium.connector.mongodb.CollectionId> |
topicSelector |
private static org.bson.json.JsonWriterSettings |
WRITER_SETTINGS |
| Constructor and Description |
|---|
FieldRenamesTest() |
private static final String SERVER_NAME
private static final String PATCH
private static final org.bson.json.JsonWriterSettings WRITER_SETTINGS
private Configurator build
private io.debezium.connector.mongodb.SourceInfo source
private io.debezium.schema.TopicSelector<io.debezium.connector.mongodb.CollectionId> topicSelector
public void setup()
public void shouldNotRenameFieldsForEventOfOtherCollection()
throws InterruptedException
InterruptedExceptionpublic void shouldRenameFieldsForReadEvent()
throws InterruptedException
InterruptedExceptionpublic void shouldNotRenameMissingFieldsForReadEvent()
throws InterruptedException
InterruptedExceptionpublic void shouldRenameNestedFieldsForReadEvent()
throws InterruptedException
InterruptedExceptionpublic void shouldNotRenameNestedMissingFieldsForReadEvent()
throws InterruptedException
InterruptedExceptionpublic void shouldNotRenameNestedFieldsToExistingNamesForReadEvent()
throws InterruptedException
InterruptedExceptionpublic void shouldRenameFieldsForInsertEvent()
throws InterruptedException
InterruptedExceptionpublic void shouldNotRenameMissingFieldsForInsertEvent()
throws InterruptedException
InterruptedExceptionpublic void shouldRenameNestedFieldsForInsertEvent()
throws InterruptedException
InterruptedExceptionpublic void shouldNotRenameNestedMissingFieldsForInsertEvent()
throws InterruptedException
InterruptedExceptionpublic void shouldNotRenameNestedFieldsToExistingNamesForInsertEvent()
throws InterruptedException
InterruptedExceptionpublic void shouldRenameFieldsForUpdateEvent()
throws InterruptedException
InterruptedExceptionpublic void shouldNotRenameMissingFieldsForUpdateEvent()
throws InterruptedException
InterruptedExceptionpublic void shouldRenameNestedFieldsForUpdateEventWithEmbeddedDocument()
throws InterruptedException
InterruptedExceptionpublic void shouldNotRenameNestedMissingFieldsForUpdateEventWithEmbeddedDocument()
throws InterruptedException
InterruptedExceptionpublic void shouldNotRenameNestedFieldsToExistingNamesForUpdateEventWithEmbeddedDocument()
throws InterruptedException
InterruptedExceptionpublic void shouldRenameNestedFieldsForUpdateEventWithArrayOfEmbeddedDocuments()
throws InterruptedException
InterruptedExceptionpublic void shouldNotRenameNestedFieldsForUpdateEventWithArrayOfArrays()
throws InterruptedException
InterruptedExceptionpublic void shouldRenameFieldsForSetTopLevelFieldUpdateEvent()
throws InterruptedException
InterruptedExceptionpublic void shouldNotRenameFieldsToExistingNamesForSetTopLevelFieldUpdateEvent()
throws InterruptedException
InterruptedExceptionpublic void shouldRenameFieldsForUnsetTopLevelFieldUpdateEvent()
throws InterruptedException
InterruptedExceptionpublic void shouldNotRenameFieldsToExistingNamesForUnsetTopLevelFieldUpdateEvent()
throws InterruptedException
InterruptedExceptionpublic void shouldRenameNestedFieldsForSetTopLevelFieldUpdateEventWithEmbeddedDocument()
throws InterruptedException
InterruptedExceptionpublic void shouldRenameNestedFieldsForSetTopLevelFieldUpdateEventWithArrayOfEmbeddedDocuments()
throws InterruptedException
InterruptedExceptionpublic void shouldNotRenameNestedFieldsForSetTopLevelFieldUpdateEventWithArrayOfArrays()
throws InterruptedException
InterruptedExceptionpublic void shouldRenameNestedFieldsForSetNestedFieldUpdateEventWithEmbeddedDocument()
throws InterruptedException
InterruptedExceptionpublic void shouldRenameNestedFieldsForSetNestedFieldUpdateEventWithArrayOfEmbeddedDocuments()
throws InterruptedException
InterruptedExceptionpublic void shouldNotRenameNestedFieldsToExistingNamesForSetNestedFieldUpdateEventWithArrayOfEmbeddedDocuments()
throws InterruptedException
InterruptedExceptionpublic void shouldNotRenameNestedFieldsForSetNestedFieldUpdateEventWithArrayOfArrays()
throws InterruptedException
InterruptedExceptionpublic void shouldRenameNestedFieldsForSetNestedFieldUpdateEventWithSeveralArrays()
throws InterruptedException
InterruptedExceptionpublic void shouldRenameFieldsForSetNestedFieldUpdateEventWithArrayOfEmbeddedDocuments()
throws InterruptedException
InterruptedExceptionpublic void shouldRenameFieldsForSetToArrayFieldUpdateEventWithArrayOfEmbeddedDocuments()
throws InterruptedException
InterruptedExceptionpublic void shouldRenameNestedFieldsForUnsetNestedFieldUpdateEventWithEmbeddedDocument()
throws InterruptedException
InterruptedExceptionpublic void shouldRenameNestedFieldsForUnsetNestedFieldUpdateEventWithArrayOfEmbeddedDocuments()
throws InterruptedException
InterruptedExceptionpublic void shouldNotRenameNestedFieldsToExistingNamesForUnsetNestedFieldUpdateEventWithArrayOfEmbeddedDocuments()
throws InterruptedException
InterruptedExceptionpublic void shouldNotRenameNestedFieldsForUnsetNestedFieldUpdateEventWithArrayOfArrays()
throws InterruptedException
InterruptedExceptionpublic void shouldRenameNestedFieldsForUnsetNestedFieldUpdateEventWithSeveralArrays()
throws InterruptedException
InterruptedExceptionpublic void shouldRenameFieldsForUnsetNestedFieldUpdateEventWithArrayOfEmbeddedDocuments()
throws InterruptedException
InterruptedExceptionpublic void shouldRenameFieldsForDeleteEvent()
throws InterruptedException
InterruptedExceptionpublic void shouldRenameFieldsForDeleteTombstoneEvent()
throws InterruptedException
InterruptedExceptionprivate org.apache.kafka.connect.data.Struct getValue(List<org.apache.kafka.connect.source.SourceRecord> produced)
private org.bson.Document createEvent(org.bson.Document obj,
String op)
private org.bson.Document createUpdateEvent(org.bson.Document obj,
org.bson.types.ObjectId objId)
Copyright © 2018 JBoss by Red Hat. All rights reserved.