Package org.flowable.engine.test
Class FlowableTestHelper
java.lang.Object
org.flowable.engine.test.FlowableTestHelper
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 Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected final FlowableMockSupportprotected final ProcessEngine -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetCurrentTime(Instant instant) voidsetCurrentTime(Date date) voidsetDeploymentIdFromDeploymentAnnotation(String deploymentIdFromDeploymentAnnotation) voidwaitForJobExecutorToProcessAllJobs(long maxMillisToWait, long intervalMillis)
-
Field Details
-
processEngine
-
mockSupport
-
deploymentIdFromDeploymentAnnotation
-
-
Constructor Details
-
FlowableTestHelper
-
-
Method Details
-
getProcessEngine
-
getDeploymentIdFromDeploymentAnnotation
-
setDeploymentIdFromDeploymentAnnotation
-
getMockSupport
-
waitForJobExecutorToProcessAllJobs
public void waitForJobExecutorToProcessAllJobs(long maxMillisToWait, long intervalMillis) -
setCurrentTime
-
setCurrentTime
-