Package org.hibernate.testing.orm.junit
Class TestingUtil
- java.lang.Object
-
- org.hibernate.testing.orm.junit.TestingUtil
-
public class TestingUtil extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
TestingUtil.TestAnnotationCollector<S>
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> T
cast(Object thing, Class<T> type)
static <A extends Annotation>
Collection<A>collectAnnotations(org.junit.jupiter.api.extension.ExtensionContext context, Class<A> annotationType, Class<? extends Annotation> groupAnnotationType)
static <A extends Annotation>
Collection<A>collectAnnotations(org.junit.jupiter.api.extension.ExtensionContext context, Class<A> annotationType, Class<? extends Annotation> groupAnnotationType, TestingUtil.TestAnnotationCollector<A> collector)
static <A extends Annotation>
Optional<A>findEffectiveAnnotation(org.junit.jupiter.api.extension.ExtensionContext context, Class<A> annotationType)
static <A extends Annotation>
booleanhasEffectiveAnnotation(org.junit.jupiter.api.extension.ExtensionContext context, Class<A> annotationType)
-
-
-
Method Detail
-
findEffectiveAnnotation
public static <A extends Annotation> Optional<A> findEffectiveAnnotation(org.junit.jupiter.api.extension.ExtensionContext context, Class<A> annotationType)
-
collectAnnotations
public static <A extends Annotation> Collection<A> collectAnnotations(org.junit.jupiter.api.extension.ExtensionContext context, Class<A> annotationType, Class<? extends Annotation> groupAnnotationType)
-
collectAnnotations
public static <A extends Annotation> Collection<A> collectAnnotations(org.junit.jupiter.api.extension.ExtensionContext context, Class<A> annotationType, Class<? extends Annotation> groupAnnotationType, TestingUtil.TestAnnotationCollector<A> collector)
-
hasEffectiveAnnotation
public static <A extends Annotation> boolean hasEffectiveAnnotation(org.junit.jupiter.api.extension.ExtensionContext context, Class<A> annotationType)
-
-