Github user mosermw commented on a diff in the pull request:

    https://github.com/apache/nifi/pull/905#discussion_r75697030
  
    --- Diff: 
nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/test/java/org/apache/nifi/processors/standard/TestUnpackContent.java
 ---
    @@ -199,11 +199,12 @@ public void testFlowFileStreamV3() throws IOException 
{
             final TestRunner runner = TestRunners.newTestRunner(new 
UnpackContent());
             runner.setProperty(UnpackContent.PACKAGING_FORMAT, 
UnpackContent.PackageFormat.FLOWFILE_STREAM_FORMAT_V3.toString());
             runner.enqueue(dataPath.resolve("data.flowfilev3"));
    +        runner.enqueue(dataPath.resolve("data.flowfilev3"));
     
    -        runner.run();
    +        runner.run(2);
     
    -        runner.assertTransferCount(UnpackContent.REL_SUCCESS, 2);
    -        runner.assertTransferCount(UnpackContent.REL_ORIGINAL, 1);
    +        runner.assertTransferCount(UnpackContent.REL_SUCCESS, 4);
    +        runner.assertTransferCount(UnpackContent.REL_ORIGINAL, 2);
    --- End diff --
    
    I would like to see this pattern (send 2 flowfiles) in other unit tests, 
too.  Can we add this to testTar(), testTarWithFilter(), testZip(), 
testZipWithFilter(), and testFlowFileStreamV2()?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to