[ 
https://issues.apache.org/jira/browse/NIFI-4961?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16396944#comment-16396944
 ] 

ASF GitHub Bot commented on NIFI-4961:
--------------------------------------

Github user bbende commented on the issue:

    https://github.com/apache/nifi/pull/2533
  
    The TestRunner should have the methods you are looking for...
    
        /**
         * Copies the content from the given byte array into memory and creates 
a
         * FlowFile from this content with no attributes and adds this FlowFile 
to
         * the Processor's Input Queue
         *
         * @param data to enqueue
         */
        MockFlowFile enqueue(byte[] data);
    
    
https://github.com/apache/nifi/blob/master/nifi-mock/src/main/java/org/apache/nifi/util/TestRunner.java


> 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
(v7.6.3#76005)

Reply via email to