Package org.hibernate.testing.orm.junit
Class TestingUtil
- java.lang.Object
-
- org.hibernate.testing.orm.junit.TestingUtil
-
public class TestingUtil extends Object
-
-
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>
Optional<A>findEffectiveAnnotation(org.junit.jupiter.api.extension.ExtensionContext context, Class<A> annotationType)
static <A extends Annotation>
List<A>findEffectiveRepeatingAnnotation(org.junit.jupiter.api.extension.ExtensionContext context, Class<A> annotationType, Class<? extends Annotation> groupAnnotationType)
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)
-
findEffectiveRepeatingAnnotation
public static <A extends Annotation> List<A> findEffectiveRepeatingAnnotation(org.junit.jupiter.api.extension.ExtensionContext context, Class<A> annotationType, Class<? extends Annotation> groupAnnotationType)
-
hasEffectiveAnnotation
public static <A extends Annotation> boolean hasEffectiveAnnotation(org.junit.jupiter.api.extension.ExtensionContext context, Class<A> annotationType)
-
-