Package com.flowable.content.engine.test
Class FlowableContentTestHelper
java.lang.Object
com.flowable.content.engine.test.FlowableContentTestHelper
public class FlowableContentTestHelper
extends java.lang.Object
A Helper for the Flowable
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.- Author:
- Filip Hrisafov
-
Field Summary
Fields Modifier and Type Field Description protected ContentEngine
contentEngine
protected java.lang.String
deploymentIdFromDeploymentAnnotation
-
Constructor Summary
Constructors Constructor Description FlowableContentTestHelper(ContentEngine contentEngine)
-
Method Summary
Modifier and Type Method Description DocumentDeployment
deploy(java.lang.Class<?> testClass, java.lang.reflect.Method method, DocumentDeployment deployment)
protected DocumentDeployment
deploy(java.lang.String[] resources, java.lang.String deploymentName, java.lang.String tenantId)
ContentEngine
getContentEngine()
java.lang.String
getDeploymentIdFromDeploymentAnnotation()
void
setCurrentTime(java.time.Instant instant)
void
setCurrentTime(java.util.Date date)
void
setDeploymentIdFromDeploymentAnnotation(java.lang.String deploymentIdFromDeploymentAnnotation)
-
Field Details
-
contentEngine
-
deploymentIdFromDeploymentAnnotation
protected java.lang.String deploymentIdFromDeploymentAnnotation
-
-
Constructor Details
-
Method Details
-
getContentEngine
-
getDeploymentIdFromDeploymentAnnotation
public java.lang.String getDeploymentIdFromDeploymentAnnotation() -
setDeploymentIdFromDeploymentAnnotation
public void setDeploymentIdFromDeploymentAnnotation(java.lang.String deploymentIdFromDeploymentAnnotation) -
setCurrentTime
public void setCurrentTime(java.util.Date date) -
setCurrentTime
public void setCurrentTime(java.time.Instant instant) -
deploy
public DocumentDeployment deploy(java.lang.Class<?> testClass, java.lang.reflect.Method method, DocumentDeployment deployment) -
deploy
protected DocumentDeployment deploy(java.lang.String[] resources, java.lang.String deploymentName, java.lang.String tenantId)
-