Class TestAnnotationUtils

java.lang.Object
org.junit.support.testng.engine.TestAnnotationUtils

class TestAnnotationUtils extends Object
Replicates how TestNG looks up test annotations and their attributes.
  • Constructor Details

    • TestAnnotationUtils

      TestAnnotationUtils()
  • Method Details

    • isAnnotatedInHierarchy

      static boolean isAnnotatedInHierarchy(Class<?> clazz)
    • isAnnotatedDirectly

      static boolean isAnnotatedDirectly(Method method)
    • getRetryAnalyzer

      public static Class<?> getRetryAnalyzer(org.testng.ITestNGMethod method)
    • getDataProvider

      static Optional<String> getDataProvider(org.testng.ITestNGMethod method)
    • getDataProviderClass

      static Optional<? extends Class<?>> getDataProviderClass(org.testng.ITestNGMethod method)
    • getAnnotation

      private static org.testng.annotations.Test getAnnotation(org.testng.ITestNGMethod method)
    • getAnnotationDirectly

      private static org.testng.annotations.Test getAnnotationDirectly(org.testng.ITestNGMethod method)
    • findAnnotationInHierarchy

      private static Optional<org.testng.annotations.Test> findAnnotationInHierarchy(Class<?> clazz)
    • collectGroups

      static Stream<String> collectGroups(Class<?> testClass)
    • collectTestAnnotations

      private static Stream<org.testng.annotations.Test> collectTestAnnotations(Class<?> testClass)
    • getClassHierarchy

      private static Stream<Class<?>> getClassHierarchy(Class<?> testClass)