exceptionfactory commented on a change in pull request #5544:
URL: https://github.com/apache/nifi/pull/5544#discussion_r754330975



##########
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:
       This is a very useful test method, but the method name is not very 
intuitive.  Instead of trying to encapsulate multiple methods, what do you 
think about breaking this up to two methods: `schedule()` and `unschedule()`?  
That would correspond to the annotations.




-- 
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]


Reply via email to