public final class Helper extends Object
| Modifier and Type | Field and Description | 
|---|---|
static String | 
VALIDATE_FAILURE_EXPECTED  | 
| Modifier and Type | Method and Description | 
|---|---|
static <S extends Annotation,P extends Annotation> | 
collectAnnotations(Class<S> singularAnnotationClass,
                  Class<P> pluralAnnotationClass,
                  org.junit.runners.model.FrameworkMethod frameworkMethod,
                  org.junit.runners.model.TestClass testClass)  | 
static void | 
createH2Schema(String schemaName,
              Configuration cfg)  | 
static void | 
createH2Schema(String schemaName,
              Map settings)
Create additional H2 schema. 
 | 
static String | 
extractIgnoreMessage(FailureExpected failureExpected,
                    org.junit.runners.model.FrameworkMethod frameworkMethod)  | 
static String | 
extractMessage(FailureExpected failureExpected)  | 
static String | 
extractMethodName(Method method)
Extract a nice method name representation for display 
 | 
static String | 
extractTestName(org.junit.runners.model.FrameworkMethod frameworkMethod)
Extract a nice test name representation for display 
 | 
static boolean | 
isNotEmpty(String string)
Standard string content checking. 
 | 
static <T extends Annotation> | 
locateAnnotation(Class<T> annotationClass,
                org.junit.runners.model.FrameworkMethod frameworkMethod,
                org.junit.runners.model.TestClass testClass)  | 
public static final String VALIDATE_FAILURE_EXPECTED
public static boolean isNotEmpty(String string)
string - The string to checkpublic static String extractTestName(org.junit.runners.model.FrameworkMethod frameworkMethod)
frameworkMethod - The test method.public static String extractMethodName(Method method)
method - The method.public static <T extends Annotation> T locateAnnotation(Class<T> annotationClass, org.junit.runners.model.FrameworkMethod frameworkMethod, org.junit.runners.model.TestClass testClass)
public static <S extends Annotation,P extends Annotation> List<S> collectAnnotations(Class<S> singularAnnotationClass, Class<P> pluralAnnotationClass, org.junit.runners.model.FrameworkMethod frameworkMethod, org.junit.runners.model.TestClass testClass)
S - Singular annotation type.P - Plural annotation type.singularAnnotationClass - Singular annotation class (e.g. SkipForDialect).pluralAnnotationClass - Plural annotation class (e.g. SkipForDialects),
 assuming that the only declared method is an array of singular annotations.frameworkMethod - Test method.testClass - Test class.public static String extractMessage(FailureExpected failureExpected)
public static String extractIgnoreMessage(FailureExpected failureExpected, org.junit.runners.model.FrameworkMethod frameworkMethod)
public static void createH2Schema(String schemaName, Configuration cfg)
createH2Schema(String, Map)Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.