[ https://issues.apache.org/jira/browse/NIFI-227?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14266649#comment-14266649 ]
Joseph Witt commented on NIFI-227: ---------------------------------- +1 > Mock Framework needs to allow TestRunner.run indicate whether or not to call > @OnScheduled methods > ------------------------------------------------------------------------------------------------- > > Key: NIFI-227 > URL: https://issues.apache.org/jira/browse/NIFI-227 > Project: Apache NiFi > Issue Type: Improvement > Components: Tools and Build > Affects Versions: 0.0.1 > Reporter: Mark Payne > Fix For: 0.0.1 > > Attachments: NIFI-227.patch.txt > > > Currently, each time TestRunner#run is called, all methods in the Processor > with an @OnScheduled annotation get called. This cannot be avoided. This can > cause a lot of problems in some cases, though. Need to be able call > TestRunner#run without it invoking @OnScheduled methods. -- This message was sent by Atlassian JIRA (v6.3.4#6332)