|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.testing.junit4.Helper
public class Helper
Centralized utility functionality
Field Summary | |
---|---|
static String |
VALIDATE_FAILURE_EXPECTED
|
Constructor Summary | |
---|---|
Helper()
|
Method Summary | ||
---|---|---|
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
|
locateAnnotation(Class<T> annotationClass,
org.junit.runners.model.FrameworkMethod frameworkMethod,
org.junit.runners.model.TestClass testClass)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String VALIDATE_FAILURE_EXPECTED
Constructor Detail |
---|
public Helper()
Method Detail |
---|
public static boolean isNotEmpty(String string)
string
- The string to check
public 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)
public static void createH2Schema(String schemaName, Map settings)
schemaName
- New schema name.settings
- Current settings.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |