Class TestingUtil

java.lang.Object
org.hibernate.testing.orm.junit.TestingUtil

public class TestingUtil extends Object
  • Method Details

    • 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)
    • cast

      public static <T> T cast(Object thing, Class<T> type)