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