[GitHub] nifi issue #2533: NIFI-4961 Allow data to be set on MockFlowFile

2018-03-22 Thread kai5263499
Github user kai5263499 commented on the issue:

https://github.com/apache/nifi/pull/2533
  
Yes, thanks for the tip about TestRunner


---


[GitHub] nifi issue #2533: NIFI-4961 Allow data to be set on MockFlowFile

2018-03-21 Thread bbende
Github user bbende commented on the issue:

https://github.com/apache/nifi/pull/2533
  
@kai5263499 can this be closed?


---


[GitHub] nifi issue #2533: NIFI-4961 Allow data to be set on MockFlowFile

2018-03-13 Thread bbende
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


---


[GitHub] nifi issue #2533: NIFI-4961 Allow data to be set on MockFlowFile

2018-03-12 Thread kai5263499
Github user kai5263499 commented on the issue:

https://github.com/apache/nifi/pull/2533
  
Yes, I have a grpc processor that allows binary data to be passed back and 
forth and I want to be able to write a unit test to verify the processor 
returns valid protobufs. I didn't see a way to do that with the current 
MockFlowFile class where setData is protected


---


[GitHub] nifi issue #2533: NIFI-4961 Allow data to be set on MockFlowFile

2018-03-12 Thread pvillard31
Github user pvillard31 commented on the issue:

https://github.com/apache/nifi/pull/2533
  
Hi @kai5263499,
I'm curious, do you have an example of unit test you want to implement that 
requires access to this method?


---