Package org.flowable.engine.test
Class FlowableTestHelper
- java.lang.Object
-
- org.flowable.engine.test.FlowableTestHelper
-
public class FlowableTestHelper extends Object
A Helper for the FlowableFlowableExtension
that can be used within the JUnit Jupiter context store and users can use it in the tests for easy modifying of theProcessEngine
time and easy access for waiting on the job executor.- Author:
- Filip Hrisafov
-
-
Field Summary
Fields Modifier and Type Field Description protected String
deploymentIdFromDeploymentAnnotation
protected FlowableMockSupport
mockSupport
protected ProcessEngine
processEngine
-
Constructor Summary
Constructors Constructor Description FlowableTestHelper(ProcessEngine processEngine)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDeploymentIdFromDeploymentAnnotation()
FlowableMockSupport
getMockSupport()
ProcessEngine
getProcessEngine()
void
setCurrentTime(Instant instant)
void
setCurrentTime(Date date)
void
setDeploymentIdFromDeploymentAnnotation(String deploymentIdFromDeploymentAnnotation)
void
waitForJobExecutorToProcessAllJobs(long maxMillisToWait, long intervalMillis)
-
-
-
Field Detail
-
processEngine
protected final ProcessEngine processEngine
-
mockSupport
protected final FlowableMockSupport mockSupport
-
deploymentIdFromDeploymentAnnotation
protected String deploymentIdFromDeploymentAnnotation
-
-
Constructor Detail
-
FlowableTestHelper
public FlowableTestHelper(ProcessEngine processEngine)
-
-
Method Detail
-
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)
-
-