public abstract class EventTestHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
EMPTY_LINE |
| Constructor and Description |
|---|
EventTestHelper() |
| Modifier and Type | Method and Description |
|---|---|
static String |
annotationDeploymentSetUp(EventRepositoryService eventRepositoryService,
Class<?> testClass,
Method method,
EventDeploymentAnnotation eventDeploymentAnnotation,
ChannelDeploymentAnnotation channelDeploymentAnnotation) |
static String |
annotationDeploymentSetUp(EventRepositoryService eventRepositoryService,
Class<?> testClass,
String methodName) |
static void |
annotationDeploymentTearDown(EventRepositoryService eventRepositoryService,
String deploymentId,
Class<?> testClass,
String methodName) |
static void |
assertAndEnsureCleanDb(EventRegistryEngine eventRegistryEngine)
Each test is assumed to clean up all DB content it entered.
|
static void |
closeEventRegistryEngines() |
static String |
getChannelResource(Class<?> type,
String name)
get a resource location by convention based on a class (type) and a relative resource name.
|
static EventRegistryEngine |
getEventRegistryEngine(String configurationResource) |
static String |
getEventResource(Class<?> type,
String name)
get a resource location by convention based on a class (type) and a relative resource name.
|
public static final String EMPTY_LINE
public static String annotationDeploymentSetUp(EventRepositoryService eventRepositoryService, Class<?> testClass, String methodName)
public static String annotationDeploymentSetUp(EventRepositoryService eventRepositoryService, Class<?> testClass, Method method, EventDeploymentAnnotation eventDeploymentAnnotation, ChannelDeploymentAnnotation channelDeploymentAnnotation)
public static void annotationDeploymentTearDown(EventRepositoryService eventRepositoryService, String deploymentId, Class<?> testClass, String methodName)
public static String getEventResource(Class<?> type, String name)
EventDeployer.EVENT_RESOURCE_SUFFIXES. The first resource matching a suffix will be returned.public static String getChannelResource(Class<?> type, String name)
EventDeployer.CHANNEL_RESOURCE_SUFFIXES. The first resource matching a suffix will be returned.public static EventRegistryEngine getEventRegistryEngine(String configurationResource)
public static void closeEventRegistryEngines()
public static void assertAndEnsureCleanDb(EventRegistryEngine eventRegistryEngine)
Copyright © 2020 Flowable. All rights reserved.