Class TestingUtil


  • public class TestingUtil
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> T cast​(java.lang.Object thing, java.lang.Class<T> type)  
      static <A extends java.lang.annotation.Annotation>
      java.util.Optional<A>
      findEffectiveAnnotation​(org.junit.jupiter.api.extension.ExtensionContext context, java.lang.Class<A> annotationType)  
      static <A extends java.lang.annotation.Annotation>
      java.util.List<A>
      findEffectiveRepeatingAnnotation​(org.junit.jupiter.api.extension.ExtensionContext context, java.lang.Class<A> annotationType, java.lang.Class<? extends java.lang.annotation.Annotation> groupAnnotationType)  
      static <A extends java.lang.annotation.Annotation>
      boolean
      hasEffectiveAnnotation​(org.junit.jupiter.api.extension.ExtensionContext context, java.lang.Class<A> annotationType)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • findEffectiveAnnotation

        public static <A extends java.lang.annotation.Annotation> java.util.Optional<A> findEffectiveAnnotation​(org.junit.jupiter.api.extension.ExtensionContext context,
                                                                                                                java.lang.Class<A> annotationType)
      • findEffectiveRepeatingAnnotation

        public static <A extends java.lang.annotation.Annotation> java.util.List<A> findEffectiveRepeatingAnnotation​(org.junit.jupiter.api.extension.ExtensionContext context,
                                                                                                                     java.lang.Class<A> annotationType,
                                                                                                                     java.lang.Class<? extends java.lang.annotation.Annotation> groupAnnotationType)
      • hasEffectiveAnnotation

        public static <A extends java.lang.annotation.Annotation> boolean hasEffectiveAnnotation​(org.junit.jupiter.api.extension.ExtensionContext context,
                                                                                                 java.lang.Class<A> annotationType)
      • cast

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