public class Helper extends Object
Modifier and Type | Field and Description |
---|---|
static String |
VALIDATE_FAILURE_EXPECTED |
Constructor and Description |
---|
Helper() |
Modifier and Type | Method and Description |
---|---|
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 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-2013 Red Hat, Inc. All Rights Reserved.