Daniel Stieglitz created NIFI-14276:
---------------------------------------

             Summary: TestRunner does not have a clearQueue method while its 
only implementation StandardProcessorTestRunner does
                 Key: NIFI-14276
                 URL: https://issues.apache.org/jira/browse/NIFI-14276
             Project: Apache NiFi
          Issue Type: Bug
            Reporter: Daniel Stieglitz


I have a Junit5 parameterized test in which I have a static TestRunner instance 
I use against many scenarios (its static as there is a lot of configuration 
needed so making it static allow for the one time creation and easy use in a 
parameterized test). One such scenario is a case where a flow file gets 
penalized. In order for my next scenario to work I need to clear the queue 
otherwise I get the failure from the penalized flow file. In order not to have 
an awkward cast to a StandardProcessorTestRunner in order to call clearQueue, I 
think the clearQueue method should be added to the TestRunner interface.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to