greyp9 commented on a change in pull request #5544:
URL: https://github.com/apache/nifi/pull/5544#discussion_r755465238
##########
File path: nifi-mock/src/main/java/org/apache/nifi/util/TestRunner.java
##########
@@ -61,6 +61,13 @@
*/
ProcessContext getProcessContext();
+ /**
+ * Call the {@link org.apache.nifi.annotation.lifecycle.OnScheduled} /
+ * {@link org.apache.nifi.annotation.lifecycle.OnUnscheduled} methods, to
simulate a processor
+ * that is enabled but never triggered.
+ */
+ void doNotRun();
Review comment:
Thanks. The `run(0)` solution seems obvious in retrospect; I made that
change.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]