Class CmmnTestHelper

java.lang.Object
org.flowable.cmmn.engine.test.impl.CmmnTestHelper

public abstract class CmmnTestHelper extends Object
Author:
Tijs Rademakers
  • Field Details

    • CMMN_RESOURCE_SUFFIXES

      public static final String[] 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

      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)