public class FlowableContentTestHelper extends Object
FlowableContentExtension
that can be used within the JUnit Jupiter context store
and users can use it in the tests for easy modifying of the ContentEngine
time and easy access for waiting on the job executor.Modifier and Type | Field and Description |
---|---|
protected ContentEngine |
contentEngine |
protected String |
deploymentIdFromDeploymentAnnotation |
Constructor and Description |
---|
FlowableContentTestHelper(ContentEngine contentEngine) |
Modifier and Type | Method and Description |
---|---|
DocumentDeployment |
deploy(Class<?> testClass,
Method method,
DocumentDeployment deployment) |
protected DocumentDeployment |
deploy(String[] resources,
String deploymentName,
String tenantId) |
ContentEngine |
getContentEngine() |
String |
getDeploymentIdFromDeploymentAnnotation() |
void |
setCurrentTime(Date date) |
void |
setCurrentTime(Instant instant) |
void |
setDeploymentIdFromDeploymentAnnotation(String deploymentIdFromDeploymentAnnotation) |
protected final ContentEngine contentEngine
protected String deploymentIdFromDeploymentAnnotation
public FlowableContentTestHelper(ContentEngine contentEngine)
public ContentEngine getContentEngine()
public String getDeploymentIdFromDeploymentAnnotation()
public void setDeploymentIdFromDeploymentAnnotation(String deploymentIdFromDeploymentAnnotation)
public void setCurrentTime(Date date)
public void setCurrentTime(Instant instant)
public DocumentDeployment deploy(Class<?> testClass, Method method, DocumentDeployment deployment)
protected DocumentDeployment deploy(String[] resources, String deploymentName, String tenantId)