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,
              org.hibernate.cfg.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> | locateAllAnnotations(Class<T> annotationClass,
                    org.junit.runners.model.FrameworkMethod frameworkMethod,
                    org.junit.runners.model.TestClass testClass)Locates the specified annotation both at the method site and class site. | 
| 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 <T extends Annotation> List<T> locateAllAnnotations(Class<T> annotationClass, org.junit.runners.model.FrameworkMethod frameworkMethod, org.junit.runners.model.TestClass testClass)
T - Annotation type.annotationClass - Annotation classframeworkMethod - Test method.testClass - Test class.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, org.hibernate.cfg.Configuration cfg)
createH2Schema(String, Map)Copyright © 2001-2021 Red Hat, Inc. All Rights Reserved.