Peter Wicks created NIFI-5862:
---------------------------------

             Summary: MockRecordParser Has Bad Logic for failAfterN
                 Key: NIFI-5862
                 URL: https://issues.apache.org/jira/browse/NIFI-5862
             Project: Apache NiFi
          Issue Type: Bug
            Reporter: Peter Wicks
            Assignee: Peter Wicks


`MockRecordParser` has a function that allows it to throw an exception after a 
certain number of records have been read. This feature is not working at all, 
and instead the reader fails immediately without reading any records.

None of the test cases check for how many records were read, so you can only 
see this in the console, for example on `TestSplitRecord.testReadFailure`:



As Is: `Intentional Unit Test Exception because 0 records have been read`

As Should Be: `Intentional Unit Test Exception because 2 records have been read`

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to