ASF GitHub Bot commented on NIFI-4961:

Github user bbende commented on the issue:

    The TestRunner should have the methods you are looking for...
         * Copies the content from the given byte array into memory and creates 
         * FlowFile from this content with no attributes and adds this FlowFile 
         * the Processor's Input Queue
         * @param data to enqueue
        MockFlowFile enqueue(byte[] data);

> Allow data to be set on MockFlowFile
> ------------------------------------
>                 Key: NIFI-4961
>                 URL: https://issues.apache.org/jira/browse/NIFI-4961
>             Project: Apache NiFi
>          Issue Type: Improvement
>            Reporter: Glenn Widner
>            Priority: Minor
> While working on tests for a custom processor I noticed that the setData 
> method is private which makes it hard to test that my processor is handling 
> FlowFile content properly.

This message was sent by Atlassian JIRA

Reply via email to