public abstract class TestHelper extends Object
Modifier and Type | Field and Description |
---|---|
static String |
EMPTY_LINE |
static List<String> |
TABLENAMES_EXCLUDED_FROM_DB_CLEAN_CHECK |
Constructor and Description |
---|
TestHelper() |
Modifier and Type | Method and Description |
---|---|
static String |
annotationDeploymentSetUp(ProcessEngine processEngine,
Class<?> testClass,
String methodName) |
static void |
annotationDeploymentTearDown(ProcessEngine processEngine,
String deploymentId,
Class<?> testClass,
String methodName) |
static boolean |
areJobsAvailable(ProcessEngineConfigurationImpl processEngineConfiguration) |
static void |
assertAndEnsureCleanDb(ProcessEngine processEngine)
Each test is assumed to clean up all DB content it entered.
|
static void |
assertProcessEnded(ProcessEngine processEngine,
String processInstanceId)
Deprecated.
|
static void |
closeProcessEngines() |
static void |
createOrUpdateHistoryLevel(ProcessEngineConfigurationImpl processEngineConfiguration) |
static void |
createSchema(ProcessEngineConfigurationImpl processEngineConfiguration) |
static void |
deleteHistoryLevel(ProcessEngineConfigurationImpl processEngineConfiguration) |
static void |
dropSchema(ProcessEngineConfigurationImpl processEngineConfiguration) |
static String |
getBpmnProcessDefinitionResource(Class<?> type,
String name)
get a resource location by convention based on a class (type) and a
relative resource name.
|
static ProcessEngine |
getProcessEngine(String configurationResource) |
static void |
waitForJobExecutorToProcessAllJobs(ProcessEngineConfigurationImpl processEngineConfiguration,
long maxMillisToWait,
long intervalMillis) |
public static final String EMPTY_LINE
@Deprecated public static void assertProcessEnded(ProcessEngine processEngine, String processInstanceId)
ProcessEngineAssert
instead.public static String annotationDeploymentSetUp(ProcessEngine processEngine, Class<?> testClass, String methodName)
public static void annotationDeploymentTearDown(ProcessEngine processEngine, String deploymentId, Class<?> testClass, String methodName)
public static String getBpmnProcessDefinitionResource(Class<?> type, String name)
BpmnDeployer.BPMN_RESOURCE_SUFFIXES
.
The first resource matching a suffix will be returned.public static void assertAndEnsureCleanDb(ProcessEngine processEngine)
public static void waitForJobExecutorToProcessAllJobs(ProcessEngineConfigurationImpl processEngineConfiguration, long maxMillisToWait, long intervalMillis)
public static boolean areJobsAvailable(ProcessEngineConfigurationImpl processEngineConfiguration)
public static ProcessEngine getProcessEngine(String configurationResource)
public static void closeProcessEngines()
public static void createSchema(ProcessEngineConfigurationImpl processEngineConfiguration)
public static void dropSchema(ProcessEngineConfigurationImpl processEngineConfiguration)
public static void createOrUpdateHistoryLevel(ProcessEngineConfigurationImpl processEngineConfiguration)
public static void deleteHistoryLevel(ProcessEngineConfigurationImpl processEngineConfiguration)
Copyright © 2015. All rights reserved.