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