public abstract class FormTestHelper extends Object
Modifier and Type | Field and Description |
---|---|
static String |
EMPTY_LINE |
Constructor and Description |
---|
FormTestHelper() |
Modifier and Type | Method and Description |
---|---|
static String |
annotationDeploymentSetUp(FormEngine formEngine,
Class<?> testClass,
Method method,
FormDeploymentAnnotation deploymentAnnotation) |
static String |
annotationDeploymentSetUp(FormEngine formEngine,
Class<?> testClass,
String methodName) |
static void |
annotationDeploymentTearDown(FormEngine formEngine,
String deploymentId,
Class<?> testClass,
String methodName) |
static void |
assertAndEnsureCleanDb(FormEngine formEngine)
Each test is assumed to clean up all DB content it entered.
|
static void |
closeFormEngines() |
static FormEngine |
getFormEngine(String configurationResource) |
static String |
getFormResource(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(FormEngine formEngine, Class<?> testClass, String methodName)
public static String annotationDeploymentSetUp(FormEngine formEngine, Class<?> testClass, Method method, FormDeploymentAnnotation deploymentAnnotation)
public static void annotationDeploymentTearDown(FormEngine formEngine, String deploymentId, Class<?> testClass, String methodName)
public static String getFormResource(Class<?> type, String name)
ParsedDeploymentBuilder.FORM_RESOURCE_SUFFIXES
. The first resource matching a suffix will be returned.public static FormEngine getFormEngine(String configurationResource)
public static void closeFormEngines()
public static void assertAndEnsureCleanDb(FormEngine formEngine)