Class AppTestHelper
- java.lang.Object
-
- com.flowable.app.engine.test.impl.AppTestHelper
-
public abstract class AppTestHelper extends Object
- Author:
- Tijs Rademakers
-
-
Field Summary
Fields Modifier and Type Field Description protected static String[]
APP_RESOURCE_SUFFIXES
-
Constructor Summary
Constructors Constructor Description AppTestHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
annotationDeploymentSetUp(AppEngine appEngine, Class<?> testClass, Method method, AppDeployment deploymentAnnotation)
static String
annotationDeploymentSetUp(AppEngine appEngine, Class<?> testClass, String methodName)
static void
annotationDeploymentTearDown(AppEngine appEngine, String deploymentId, Class<?> testClass, String methodName)
static AppDeploymentBuilder
createAppDeploymentBuilder(AppEngine appEngine, String deploymentName, String... resources)
static String
getAppDefinitionResource(Class<?> type, String name)
get a resource location by convention based on a class (type) and a relative resource name.static AppEngine
getAppEngine(String configurationResource)
-
-
-
Field Detail
-
APP_RESOURCE_SUFFIXES
protected static final String[] APP_RESOURCE_SUFFIXES
-
-
Method Detail
-
annotationDeploymentSetUp
public static String annotationDeploymentSetUp(AppEngine appEngine, Class<?> testClass, String methodName)
-
annotationDeploymentSetUp
public static String annotationDeploymentSetUp(AppEngine appEngine, Class<?> testClass, Method method, AppDeployment deploymentAnnotation)
-
createAppDeploymentBuilder
public static AppDeploymentBuilder createAppDeploymentBuilder(AppEngine appEngine, String deploymentName, String... resources)
-
annotationDeploymentTearDown
public static void annotationDeploymentTearDown(AppEngine appEngine, String deploymentId, Class<?> testClass, String methodName)
-
getAppDefinitionResource
public static String getAppDefinitionResource(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:APP_RESOURCE_SUFFIXES
. The first resource matching a suffix will be returned.
-
-