Class CmmnTestHelper
- java.lang.Object
-
- org.flowable.cmmn.engine.test.impl.CmmnTestHelper
-
public abstract class CmmnTestHelper extends Object
- Author:
- Tijs Rademakers
-
-
Field Summary
Fields Modifier and Type Field Description static String[]CMMN_RESOURCE_SUFFIXES
-
Constructor Summary
Constructors Constructor Description CmmnTestHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringannotationDeploymentSetUp(CmmnEngine cmmnEngine, Class<?> testClass, Method method)static StringannotationDeploymentSetUp(CmmnEngine cmmnEngine, Class<?> testClass, Method method, CmmnDeployment deploymentAnnotation)static StringannotationDeploymentSetUp(CmmnEngine cmmnEngine, Class<?> testClass, String methodName)static voidannotationDeploymentTearDown(CmmnEngine cmmnEngine, String deploymentId, Class<?> testClass, String methodName)static voiddeleteDeployment(CmmnEngineConfiguration cmmnEngineConfiguration, String deploymentId)static voiddeleteWithoutGeneratingHistoryJobs(CmmnEngineConfiguration cmmnEngineConfiguration, Consumer<CmmnEngineConfiguration> consumer)static StringgetCmmnCaseDefinitionResource(Class<?> type, String name)get a resource location by convention based on a class (type) and a relative resource name.static CmmnEnginegetCmmnEngine(String configurationResource)
-
-
-
Field Detail
-
CMMN_RESOURCE_SUFFIXES
public static final String[] CMMN_RESOURCE_SUFFIXES
-
-
Method Detail
-
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
public static CmmnEngine getCmmnEngine(String configurationResource)
-
getCmmnCaseDefinitionResource
public static String getCmmnCaseDefinitionResource(Class<?> type, String name)
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)
-
-