Class CmmnTestHelper
java.lang.Object
org.flowable.cmmn.engine.test.impl.CmmnTestHelper
- Author:
- Tijs Rademakers
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
annotationDeploymentSetUp
(CmmnEngine cmmnEngine, Class<?> testClass, Method method) static String
annotationDeploymentSetUp
(CmmnEngine cmmnEngine, Class<?> testClass, Method method, CmmnDeployment deploymentAnnotation) static String
annotationDeploymentSetUp
(CmmnEngine cmmnEngine, Class<?> testClass, String methodName) static void
annotationDeploymentTearDown
(CmmnEngine cmmnEngine, String deploymentId, Class<?> testClass, String methodName) static void
deleteDeployment
(CmmnEngineConfiguration cmmnEngineConfiguration, String deploymentId) static void
deleteWithoutGeneratingHistoryJobs
(CmmnEngineConfiguration cmmnEngineConfiguration, Consumer<CmmnEngineConfiguration> consumer) static String
getCmmnCaseDefinitionResource
(Class<?> type, String name) get a resource location by convention based on a class (type) and a relative resource name.static CmmnEngine
getCmmnEngine
(String configurationResource)
-
Field Details
-
CMMN_RESOURCE_SUFFIXES
-
-
Constructor Details
-
CmmnTestHelper
public CmmnTestHelper()
-
-
Method Details
-
annotationDeploymentSetUp
public static String annotationDeploymentSetUp(CmmnEngine cmmnEngine, Class<?> testClass, String methodName) -
annotationDeploymentSetUp
public static String annotationDeploymentSetUp(CmmnEngine cmmnEngine, Class<?> testClass, Method method) -
annotationDeploymentSetUp
public static String annotationDeploymentSetUp(CmmnEngine cmmnEngine, Class<?> testClass, Method method, CmmnDeployment deploymentAnnotation) -
annotationDeploymentTearDown
public static void annotationDeploymentTearDown(CmmnEngine cmmnEngine, String deploymentId, Class<?> testClass, String methodName) -
getCmmnEngine
-
getCmmnCaseDefinitionResource
get a resource location by convention based on a class (type) and a relative resource name. The return value will be the full classpath location of the type, plus a suffix built from the name parameter:CMMN_RESOURCE_SUFFIXES
. The first resource matching a suffix will be returned. -
deleteDeployment
public static void deleteDeployment(CmmnEngineConfiguration cmmnEngineConfiguration, String deploymentId) -
deleteWithoutGeneratingHistoryJobs
public static void deleteWithoutGeneratingHistoryJobs(CmmnEngineConfiguration cmmnEngineConfiguration, Consumer<CmmnEngineConfiguration> consumer)
-