Package org.testng.internal.annotations
Class AnnotationHelper
java.lang.Object
org.testng.internal.annotations.AnnotationHelper
Helper methods to find @Test and @Configuration tags. They minimize the amount of casting we need
to do.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <A extends Annotation>
AfindAnnotationSuperClasses
(Class<A> annotationClass, Class<?> parameterClass) static IConfigurationAnnotation
findConfiguration
(IAnnotationFinder finder, Method m) static IConfigurationAnnotation
static IFactoryAnnotation
findFactory
(IAnnotationFinder finder, Constructor c) static IFactoryAnnotation
findFactory
(IAnnotationFinder finder, Method m) static ITestNGMethod[]
findMethodsWithAnnotation
(Class<?> rootClass, Class<? extends IAnnotation> annotationClass, IAnnotationFinder annotationFinder, XmlTest xmlTest) static ITestAnnotation
findTest
(IAnnotationFinder finder, Class<?> cls) static ITestAnnotation
findTest
(IAnnotationFinder finder, Method m) static ITestAnnotation
findTest
(IAnnotationFinder finder, ITestNGMethod m) static List<Class<? extends IAnnotation>>
-
Method Details
-
findTest
-
findTest
-
findTest
-
findFactory
-
findFactory
-
findConfiguration
public static IConfigurationAnnotation findConfiguration(IAnnotationFinder finder, ConstructorOrMethod m) -
findConfiguration
-
getAllAnnotations
-
findMethodsWithAnnotation
public static ITestNGMethod[] findMethodsWithAnnotation(Class<?> rootClass, Class<? extends IAnnotation> annotationClass, IAnnotationFinder annotationFinder, XmlTest xmlTest) -
findAnnotationSuperClasses
public static <A extends Annotation> A findAnnotationSuperClasses(Class<A> annotationClass, Class<?> parameterClass)
-