Search in sources :

Example 1 with SourceInfo

use of io.debezium.connector.mongodb.SourceInfo in project debezium by debezium.

the class UnwrapFromMongoDbEnvelopeTest method setup.

@Before
public void setup() {
    source = new SourceInfo(SERVER_NAME);
    topicSelector = TopicSelector.defaultSelector(PREFIX);
    produced = new ArrayList<>();
    recordMakers = new RecordMakers(source, topicSelector, produced::add, true);
    transformation = new UnwrapFromMongoDbEnvelope<SourceRecord>();
    transformation.configure(Collections.emptyMap());
}
Also used : SourceInfo(io.debezium.connector.mongodb.SourceInfo) RecordMakers(io.debezium.connector.mongodb.RecordMakers) SourceRecord(org.apache.kafka.connect.source.SourceRecord) Before(org.junit.Before)

Aggregations

RecordMakers (io.debezium.connector.mongodb.RecordMakers)1 SourceInfo (io.debezium.connector.mongodb.SourceInfo)1 SourceRecord (org.apache.kafka.connect.source.SourceRecord)1 Before (org.junit.Before)1