org.testng.internal.annotations
Class AnnotationHelper

java.lang.Object
  extended by 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. Created on Dec 20, 2005

Author:
cbeust

Field Summary
static java.lang.Class[] CONFIGURATION_CLASSES
           
 
Constructor Summary
AnnotationHelper()
           
 
Method Summary
static IConfiguration findConfiguration(IAnnotationFinder finder, java.lang.reflect.Constructor ctor)
           
static IConfiguration findConfiguration(IAnnotationFinder finder, java.lang.reflect.Method m)
           
static IFactory findFactory(IAnnotationFinder finder, java.lang.reflect.Method m)
           
static ITestNGMethod[] findMethodsWithAnnotation(java.lang.Class rootClass, java.lang.Class annotationClass, IAnnotationFinder annotationFinder)
          Delegation method for creating the list of ITestMethods to be analysed.
static ITest findTest(IAnnotationFinder finder, java.lang.Class cls)
           
static ITest findTest(IAnnotationFinder finder, java.lang.reflect.Constructor ctor)
           
static ITest findTest(IAnnotationFinder finder, java.lang.reflect.Method m)
           
static java.lang.Class[] getAllAnnotations()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONFIGURATION_CLASSES

public static java.lang.Class[] CONFIGURATION_CLASSES
Constructor Detail

AnnotationHelper

public AnnotationHelper()
Method Detail

findTest

public static ITest findTest(IAnnotationFinder finder,
                             java.lang.Class cls)

findTest

public static ITest findTest(IAnnotationFinder finder,
                             java.lang.reflect.Method m)

findFactory

public static IFactory findFactory(IAnnotationFinder finder,
                                   java.lang.reflect.Method m)

findTest

public static ITest findTest(IAnnotationFinder finder,
                             java.lang.reflect.Constructor ctor)

findConfiguration

public static IConfiguration findConfiguration(IAnnotationFinder finder,
                                               java.lang.reflect.Constructor ctor)

findConfiguration

public static IConfiguration findConfiguration(IAnnotationFinder finder,
                                               java.lang.reflect.Method m)

getAllAnnotations

public static java.lang.Class[] getAllAnnotations()

findMethodsWithAnnotation

public static ITestNGMethod[] findMethodsWithAnnotation(java.lang.Class rootClass,
                                                        java.lang.Class annotationClass,
                                                        IAnnotationFinder annotationFinder)
Delegation method for creating the list of ITestMethods to be analysed.



Copyright © 2010. All Rights Reserved.