Package org.junit.support.testng.engine
Class TestAnnotationUtils
java.lang.Object
org.junit.support.testng.engine.TestAnnotationUtils
Replicates how TestNG looks up test annotations and their attributes.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncollectGroups
(Class<?> testClass) private static Stream
<org.testng.annotations.Test> collectTestAnnotations
(Class<?> testClass) private static Optional
<org.testng.annotations.Test> findAnnotationInHierarchy
(Class<?> clazz) private static org.testng.annotations.Test
getAnnotation
(org.testng.ITestNGMethod method) private static org.testng.annotations.Test
getAnnotationDirectly
(org.testng.ITestNGMethod method) getClassHierarchy
(Class<?> testClass) getDataProvider
(org.testng.ITestNGMethod method) getDataProviderClass
(org.testng.ITestNGMethod method) static Class
<?> getRetryAnalyzer
(org.testng.ITestNGMethod method) (package private) static boolean
isAnnotatedDirectly
(Method method) (package private) static boolean
isAnnotatedInHierarchy
(Class<?> clazz)
-
Constructor Details
-
TestAnnotationUtils
TestAnnotationUtils()
-
-
Method Details
-
isAnnotatedInHierarchy
-
isAnnotatedDirectly
-
getRetryAnalyzer
-
getDataProvider
-
getDataProviderClass
-
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
-
collectGroups
-
collectTestAnnotations
-
getClassHierarchy
-