You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Ilya Kovalev (Jira)" <ji...@apache.org> on 2020/03/30 20:28:00 UTC

[jira] [Created] (NIFI-7297) Mock bundle: inputStream created py MockProcessSession doesn't count avalable() bytes

Ilya Kovalev created NIFI-7297:
----------------------------------

             Summary: Mock bundle: inputStream created py MockProcessSession doesn't count avalable() bytes
                 Key: NIFI-7297
                 URL: https://issues.apache.org/jira/browse/NIFI-7297
             Project: Apache NiFi
          Issue Type: Bug
          Components: Core Framework
            Reporter: Ilya Kovalev


MockProcessSession.read(FlowFile file) return `InputStream`  doesn't count available bytes.

due testing custom processor that read flowfile by following example
BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream)) ;
while (reader.ready()){
tests will fail because available() return constantly 0 and reader's buffer is empty



--
This message was sent by Atlassian Jira
(v8.3.4#803005)