Package org.junit.support.testng.engine
Class TestAnnotationUtils
- java.lang.Object
-
- org.junit.support.testng.engine.TestAnnotationUtils
-
class TestAnnotationUtils extends java.lang.ObjectReplicates how TestNG looks up test annotations and their attributes.
-
-
Constructor Summary
Constructors Constructor Description TestAnnotationUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static java.util.stream.Stream<java.lang.String>collectGroups(java.lang.Class<?> testClass)private static java.util.stream.Stream<org.testng.annotations.Test>collectTestAnnotations(java.lang.Class<?> testClass)private static java.util.Optional<org.testng.annotations.Test>findAnnotationInHierarchy(java.lang.Class<?> clazz)private static org.testng.annotations.TestgetAnnotation(org.testng.ITestNGMethod method)private static org.testng.annotations.TestgetAnnotationDirectly(org.testng.ITestNGMethod method)private static java.util.stream.Stream<java.lang.Class<?>>getClassHierarchy(java.lang.Class<?> testClass)(package private) static java.util.Optional<java.lang.String>getDataProvider(org.testng.ITestNGMethod method)(package private) static java.util.Optional<? extends java.lang.Class<?>>getDataProviderClass(org.testng.ITestNGMethod method)static java.lang.Class<?>getRetryAnalyzer(org.testng.ITestNGMethod method)(package private) static booleanisAnnotatedDirectly(java.lang.reflect.Method method)(package private) static booleanisAnnotatedInHierarchy(java.lang.Class<?> clazz)
-
-
-
Method Detail
-
isAnnotatedInHierarchy
static boolean isAnnotatedInHierarchy(java.lang.Class<?> clazz)
-
isAnnotatedDirectly
static boolean isAnnotatedDirectly(java.lang.reflect.Method method)
-
getRetryAnalyzer
public static java.lang.Class<?> getRetryAnalyzer(org.testng.ITestNGMethod method)
-
getDataProvider
static java.util.Optional<java.lang.String> getDataProvider(org.testng.ITestNGMethod method)
-
getDataProviderClass
static java.util.Optional<? extends java.lang.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 java.util.Optional<org.testng.annotations.Test> findAnnotationInHierarchy(java.lang.Class<?> clazz)
-
collectGroups
static java.util.stream.Stream<java.lang.String> collectGroups(java.lang.Class<?> testClass)
-
collectTestAnnotations
private static java.util.stream.Stream<org.testng.annotations.Test> collectTestAnnotations(java.lang.Class<?> testClass)
-
getClassHierarchy
private static java.util.stream.Stream<java.lang.Class<?>> getClassHierarchy(java.lang.Class<?> testClass)
-
-