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