Class CmmnTestHelper


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

      • CMMN_RESOURCE_SUFFIXES

        public static final String[] CMMN_RESOURCE_SUFFIXES
    • Constructor Detail

      • CmmnTestHelper

        public CmmnTestHelper()
    • Method Detail

      • annotationDeploymentSetUp

        public static String annotationDeploymentSetUp​(CmmnEngine cmmnEngine,
                                                       Class<?> testClass,
                                                       String methodName)
      • annotationDeploymentSetUp

        public static String annotationDeploymentSetUp​(CmmnEngine cmmnEngine,
                                                       Class<?> testClass,
                                                       Method method)
      • 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.