Class FlowableTestHelper

java.lang.Object
org.flowable.engine.test.FlowableTestHelper

public class FlowableTestHelper extends Object
A Helper for the Flowable FlowableExtension that can be used within the JUnit Jupiter context store and users can use it in the tests for easy modifying of the ProcessEngine time and easy access for waiting on the job executor.
Author:
Filip Hrisafov
  • Field Details

    • processEngine

      protected final ProcessEngine processEngine
    • mockSupport

      protected final FlowableMockSupport mockSupport
    • deploymentIdFromDeploymentAnnotation

      protected String deploymentIdFromDeploymentAnnotation
  • Constructor Details

    • FlowableTestHelper

      public FlowableTestHelper(ProcessEngine processEngine)
  • Method Details

    • getProcessEngine

      public ProcessEngine getProcessEngine()
    • getDeploymentIdFromDeploymentAnnotation

      public String getDeploymentIdFromDeploymentAnnotation()
    • setDeploymentIdFromDeploymentAnnotation

      public void setDeploymentIdFromDeploymentAnnotation(String deploymentIdFromDeploymentAnnotation)
    • getMockSupport

      public FlowableMockSupport getMockSupport()
    • waitForJobExecutorToProcessAllJobs

      public void waitForJobExecutorToProcessAllJobs(long maxMillisToWait, long intervalMillis)
    • setCurrentTime

      public void setCurrentTime(Date date)
    • setCurrentTime

      public void setCurrentTime(Instant instant)