Package org.testng.internal.annotations
Class AnnotationHelper
- java.lang.Object
-
- org.testng.internal.annotations.AnnotationHelper
-
public class AnnotationHelper extends Object
Helper methods to find @Test and @Configuration tags. They minimize the amount of casting we need to do. Created on Dec 20, 2005- Author:
- cbeust
-
-
Method Summary
-
-
-
Method Detail
-
findTest
public static ITestAnnotation findTest(IAnnotationFinder finder, Class<?> cls)
-
findTest
public static ITestAnnotation findTest(IAnnotationFinder finder, Method m)
-
findTest
public static ITestAnnotation findTest(IAnnotationFinder finder, ITestNGMethod m)
-
findFactory
public static IFactoryAnnotation findFactory(IAnnotationFinder finder, Method m)
-
findFactory
public static IFactoryAnnotation findFactory(IAnnotationFinder finder, Constructor c)
-
findTest
public static ITestAnnotation findTest(IAnnotationFinder finder, Constructor ctor)
-
findConfiguration
public static IConfigurationAnnotation findConfiguration(IAnnotationFinder finder, ConstructorOrMethod m)
-
findConfiguration
public static IConfigurationAnnotation findConfiguration(IAnnotationFinder finder, Constructor ctor)
-
findConfiguration
public static IConfigurationAnnotation findConfiguration(IAnnotationFinder finder, Method m)
-
getAllAnnotations
public static Class[] getAllAnnotations()
-
findMethodsWithAnnotation
public static ITestNGMethod[] findMethodsWithAnnotation(Class<?> rootClass, Class<? extends IAnnotation> annotationClass, IAnnotationFinder annotationFinder, XmlTest xmlTest)
Delegation method for creating the list ofITestMethod
s to be analysed.
-
findAnnotationSuperClasses
public static <A extends Annotation> A findAnnotationSuperClasses(Class<A> annotationClass, Class parameterClass)
-
-