[
https://issues.apache.org/jira/browse/NIFI-4233?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Netanel Bitan updated NIFI-4233:
--------------------------------
Description:
Function
[MockFlowFile#getData|https://github.com/apache/nifi/blob/master/nifi-mock/src/main/java/org/apache/nifi/util/MockFlowFile.java#L146]
is not public.
There is no documentation to this function so I can`t know if there is a good
reason to that.
I would like to test the data of the file when I test my Processor, and if I
want to make a complex logic in my test it will be easier with the data itself
and not something like
[assertContentEquals|https://github.com/apache/nifi/blob/master/nifi-mock/src/main/java/org/apache/nifi/util/MockFlowFile.java#L243].
was:
Function getData in class MockFlowFile ([link to the function in
GitHub|https://github.com/apache/nifi/blob/master/nifi-mock/src/main/java/org/apache/nifi/util/MockFlowFile.java#L146])
is not public.
There is no documentation to this function so I can`t know if there is a good
reason to that.
I would like to test the data of the file when I test my Processor, and if I
want to make a complex logic in my test it will be easier with the data itself
and not something like
[assertContentEquals|https://github.com/apache/nifi/blob/master/nifi-mock/src/main/java/org/apache/nifi/util/MockFlowFile.java#L243].
> MockFlowFile#getData is not public
> ----------------------------------
>
> Key: NIFI-4233
> URL: https://issues.apache.org/jira/browse/NIFI-4233
> Project: Apache NiFi
> Issue Type: Bug
> Components: Extensions
> Reporter: Netanel Bitan
> Priority: Trivial
>
> Function
> [MockFlowFile#getData|https://github.com/apache/nifi/blob/master/nifi-mock/src/main/java/org/apache/nifi/util/MockFlowFile.java#L146]
> is not public.
> There is no documentation to this function so I can`t know if there is a good
> reason to that.
> I would like to test the data of the file when I test my Processor, and if I
> want to make a complex logic in my test it will be easier with the data
> itself and not something like
> [assertContentEquals|https://github.com/apache/nifi/blob/master/nifi-mock/src/main/java/org/apache/nifi/util/MockFlowFile.java#L243].
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)