Package com.flowable.content.engine.test
Class FlowableContentTestHelper
- java.lang.Object
-
- com.flowable.content.engine.test.FlowableContentTestHelper
-
public class FlowableContentTestHelper extends Object
A Helper for the FlowableFlowableContentExtension
that can be used within the JUnit Jupiter context store and users can use it in the tests for easy modifying of theContentEngine
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 String
deploymentIdFromDeploymentAnnotation
-
Constructor Summary
Constructors Constructor Description FlowableContentTestHelper(ContentEngine contentEngine)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DocumentDeployment
deploy(Class<?> testClass, Method method, DocumentDeployment deployment)
protected DocumentDeployment
deploy(String[] resources, String deploymentName, String tenantId)
ContentEngine
getContentEngine()
String
getDeploymentIdFromDeploymentAnnotation()
void
setCurrentTime(Instant instant)
void
setCurrentTime(Date date)
void
setDeploymentIdFromDeploymentAnnotation(String deploymentIdFromDeploymentAnnotation)
-
-
-
Field Detail
-
contentEngine
protected final ContentEngine contentEngine
-
deploymentIdFromDeploymentAnnotation
protected String deploymentIdFromDeploymentAnnotation
-
-
Constructor Detail
-
FlowableContentTestHelper
public FlowableContentTestHelper(ContentEngine contentEngine)
-
-
Method Detail
-
getContentEngine
public ContentEngine getContentEngine()
-
getDeploymentIdFromDeploymentAnnotation
public String getDeploymentIdFromDeploymentAnnotation()
-
setDeploymentIdFromDeploymentAnnotation
public void setDeploymentIdFromDeploymentAnnotation(String deploymentIdFromDeploymentAnnotation)
-
setCurrentTime
public void setCurrentTime(Date date)
-
setCurrentTime
public void setCurrentTime(Instant instant)
-
deploy
public DocumentDeployment deploy(Class<?> testClass, Method method, DocumentDeployment deployment)
-
deploy
protected DocumentDeployment deploy(String[] resources, String deploymentName, String tenantId)
-
-