public class FlowableTestHelper extends Object
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.| Modifier and Type | Field and Description |
|---|---|
protected String |
deploymentIdFromDeploymentAnnotation |
protected FlowableMockSupport |
mockSupport |
protected ProcessEngine |
processEngine |
| Constructor and Description |
|---|
FlowableTestHelper(ProcessEngine processEngine) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDeploymentIdFromDeploymentAnnotation() |
FlowableMockSupport |
getMockSupport() |
ProcessEngine |
getProcessEngine() |
void |
setCurrentTime(Date date) |
void |
setCurrentTime(java.time.Instant instant) |
void |
setDeploymentIdFromDeploymentAnnotation(String deploymentIdFromDeploymentAnnotation) |
void |
waitForJobExecutorToProcessAllJobs(long maxMillisToWait,
long intervalMillis) |
protected final ProcessEngine processEngine
protected final FlowableMockSupport mockSupport
protected String deploymentIdFromDeploymentAnnotation
public FlowableTestHelper(ProcessEngine processEngine)
public ProcessEngine getProcessEngine()
public String getDeploymentIdFromDeploymentAnnotation()
public void setDeploymentIdFromDeploymentAnnotation(String deploymentIdFromDeploymentAnnotation)
public FlowableMockSupport getMockSupport()
public void waitForJobExecutorToProcessAllJobs(long maxMillisToWait,
long intervalMillis)
public void setCurrentTime(Date date)
public void setCurrentTime(java.time.Instant instant)
Copyright © 2018 Flowable. All rights reserved.