use of org.apache.nifi.serialization.record.CommaSeparatedRecordReader in project nifi by apache.
the class TestMergeRecord method setup.
@Before
public void setup() throws InitializationException {
runner = TestRunners.newTestRunner(new MergeRecord());
readerService = new CommaSeparatedRecordReader();
writerService = new MockRecordWriter("header", false);
runner.addControllerService("reader", readerService);
runner.enableControllerService(readerService);
runner.addControllerService("writer", writerService);
runner.enableControllerService(writerService);
runner.setProperty(MergeRecord.RECORD_READER, "reader");
runner.setProperty(MergeRecord.RECORD_WRITER, "writer");
}
Aggregations