Class TestingUtil


  • public class TestingUtil
    extends Object
    • Method Detail

      • findEffectiveAnnotation

        public static <A extends AnnotationOptional<A> findEffectiveAnnotation​(org.junit.jupiter.api.extension.ExtensionContext context,
                                                                                 Class<A> annotationType)
      • collectAnnotations

        public static <A extends AnnotationCollection<A> collectAnnotations​(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)
      • cast

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