public final class Helper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
VALIDATE_FAILURE_EXPECTED |
Modifier and Type | Method and Description |
---|---|
static <S extends java.lang.annotation.Annotation,P extends java.lang.annotation.Annotation> |
collectAnnotations(java.lang.Class<S> singularAnnotationClass,
java.lang.Class<P> pluralAnnotationClass,
org.junit.runners.model.FrameworkMethod frameworkMethod,
org.junit.runners.model.TestClass testClass) |
static void |
createH2Schema(java.lang.String schemaName,
Configuration cfg) |
static void |
createH2Schema(java.lang.String schemaName,
java.util.Map settings)
Create additional H2 schema.
|
static java.lang.String |
extractIgnoreMessage(FailureExpected failureExpected,
org.junit.runners.model.FrameworkMethod frameworkMethod) |
static java.lang.String |
extractMessage(FailureExpected failureExpected) |
static java.lang.String |
extractMethodName(java.lang.reflect.Method method)
Extract a nice method name representation for display
|
static java.lang.String |
extractTestName(org.junit.runners.model.FrameworkMethod frameworkMethod)
Extract a nice test name representation for display
|
static boolean |
isNotEmpty(java.lang.String string)
Standard string content checking.
|
static <T extends java.lang.annotation.Annotation> |
locateAnnotation(java.lang.Class<T> annotationClass,
org.junit.runners.model.FrameworkMethod frameworkMethod,
org.junit.runners.model.TestClass testClass) |
public static final java.lang.String VALIDATE_FAILURE_EXPECTED
public static boolean isNotEmpty(java.lang.String string)
string
- The string to checkpublic static java.lang.String extractTestName(org.junit.runners.model.FrameworkMethod frameworkMethod)
frameworkMethod
- The test method.public static java.lang.String extractMethodName(java.lang.reflect.Method method)
method
- The method.public static <T extends java.lang.annotation.Annotation> T locateAnnotation(java.lang.Class<T> annotationClass, org.junit.runners.model.FrameworkMethod frameworkMethod, org.junit.runners.model.TestClass testClass)
public static <S extends java.lang.annotation.Annotation,P extends java.lang.annotation.Annotation> java.util.List<S> collectAnnotations(java.lang.Class<S> singularAnnotationClass, java.lang.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 java.lang.String extractMessage(FailureExpected failureExpected)
public static java.lang.String extractIgnoreMessage(FailureExpected failureExpected, org.junit.runners.model.FrameworkMethod frameworkMethod)
public static void createH2Schema(java.lang.String schemaName, Configuration cfg)
createH2Schema(String, Map)
public static void createH2Schema(java.lang.String schemaName, java.util.Map settings)
schemaName
- New schema name.settings
- Current settings.Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.