Package | Description |
---|---|
org.testng.annotations | |
org.testng.internal.annotations |
Modifier and Type | Interface and Description |
---|---|
interface |
IConfigurationAnnotation
Encapsulate the @Configuration / @testng.configuration annotation
|
interface |
IDataProviderAnnotation
Encapsulate the @DataProvider / @testng.data-provider annotation
|
interface |
IFactoryAnnotation
Encapsulate the @Factory / @testng.factory annotation
|
interface |
IListenersAnnotation |
interface |
IObjectFactoryAnnotation |
interface |
IParameterizable
Parent interface for annotations that can receive parameters.
|
interface |
IParametersAnnotation
Encapsulate the @Parameters / @testng.parameters annotation
|
interface |
ITestAnnotation
Encapsulate the @Test / @testng.test annotation.
|
interface |
ITestOrConfiguration
This interface captures methods common to @Test and @Configuration
|
Modifier and Type | Interface and Description |
---|---|
interface |
IAfterClass |
interface |
IAfterGroups |
interface |
IAfterMethod |
interface |
IAfterSuite |
interface |
IAfterTest |
interface |
IBaseBeforeAfter
Base interface for IBeforeSuite, IAfterSuite, etc...
|
interface |
IBaseBeforeAfterMethod |
interface |
IBeforeClass |
interface |
IBeforeGroups |
interface |
IBeforeMethod |
interface |
IBeforeSuite |
interface |
IBeforeTest |
interface |
IListeners |
interface |
ITest |
Modifier and Type | Class and Description |
---|---|
class |
BaseBeforeAfter |
class |
ConfigurationAnnotation
An implementation of IConfiguration
|
class |
DataProviderAnnotation
An implementation of IDataProvider.
|
class |
FactoryAnnotation
An implementation of IFactory
|
class |
ListenersAnnotation |
class |
ObjectFactoryAnnotation
The internal representation of @ObjectFactory
|
class |
ParametersAnnotation
An implementation of IParameters
|
class |
TestAnnotation
An implementation of ITest
|
class |
TestOrConfiguration |
Modifier and Type | Field and Description |
---|---|
private static java.util.List<java.lang.Class<? extends IAnnotation>> |
AnnotationHelper.ALL_ANNOTATIONS |
private static java.util.List<java.lang.Class<? extends IAnnotation>> |
AnnotationHelper.CONFIGURATION_CLASSES |
private java.util.Map<java.lang.Class<? extends IAnnotation>,java.lang.Class<? extends java.lang.annotation.Annotation>> |
JDK15AnnotationFinder.m_annotationMap |
private java.util.Map<Pair<java.lang.annotation.Annotation,?>,IAnnotation> |
JDK15AnnotationFinder.m_annotations |
Modifier and Type | Method and Description |
---|---|
<A extends IAnnotation> |
JDK15TagFactory.createTag(java.lang.Class<?> cls,
java.lang.reflect.Method method,
java.lang.annotation.Annotation a,
java.lang.Class<A> annotationClass) |
<A extends IAnnotation> |
JDK15AnnotationFinder.findAnnotation(java.lang.Class<?> cls,
java.lang.Class<A> annotationClass) |
<A extends IAnnotation> |
IAnnotationFinder.findAnnotation(java.lang.Class<?> cls,
java.lang.Class<A> annotationClass) |
<A extends IAnnotation> |
JDK15AnnotationFinder.findAnnotation(java.lang.Class<?> clazz,
java.lang.reflect.Method m,
java.lang.Class<A> annotationClass) |
<A extends IAnnotation> |
IAnnotationFinder.findAnnotation(java.lang.Class<?> clazz,
java.lang.reflect.Method m,
java.lang.Class<A> annotationClass) |
private <A extends IAnnotation> |
JDK15AnnotationFinder.findAnnotation(java.lang.Class cls,
java.lang.annotation.Annotation a,
java.lang.Class<A> annotationClass,
java.lang.Class<?> testClass,
java.lang.reflect.Constructor<?> testConstructor,
java.lang.reflect.Method testMethod,
Pair<java.lang.annotation.Annotation,?> p,
java.lang.Class<?> whichClass) |
<A extends IAnnotation> |
JDK15AnnotationFinder.findAnnotation(java.lang.reflect.Constructor<?> cons,
java.lang.Class<A> annotationClass) |
<A extends IAnnotation> |
IAnnotationFinder.findAnnotation(java.lang.reflect.Constructor<?> cons,
java.lang.Class<A> annotationClass) |
<A extends IAnnotation> |
JDK15AnnotationFinder.findAnnotation(ConstructorOrMethod com,
java.lang.Class<A> annotationClass) |
<A extends IAnnotation> |
IAnnotationFinder.findAnnotation(ConstructorOrMethod com,
java.lang.Class<A> annotationClass) |
<A extends IAnnotation> |
JDK15AnnotationFinder.findAnnotation(ITestNGMethod tm,
java.lang.Class<A> annotationClass) |
<A extends IAnnotation> |
IAnnotationFinder.findAnnotation(ITestNGMethod m,
java.lang.Class<A> annotationClass) |
<A extends IAnnotation> |
JDK15AnnotationFinder.findAnnotation(java.lang.reflect.Method m,
java.lang.Class<A> annotationClass) |
<A extends IAnnotation> |
IAnnotationFinder.findAnnotation(java.lang.reflect.Method m,
java.lang.Class<A> annotationClass) |
Modifier and Type | Method and Description |
---|---|
private IAnnotation |
JDK15TagFactory.createConfigurationTag(boolean beforeSuite,
boolean afterSuite,
boolean beforeTest,
boolean afterTest,
java.lang.String[] beforeGroups,
java.lang.String[] afterGroups,
boolean beforeClass,
boolean afterClass,
boolean beforeMethod,
boolean afterMethod,
boolean alwaysRun,
java.lang.String[] dependsOnGroups,
java.lang.String[] dependsOnMethods,
java.lang.String description,
boolean enabled,
java.lang.String[] groups,
boolean inheritGroups,
boolean firstTimeOnly,
boolean lastTimeOnly,
long timeOut,
java.lang.String[] groupFilters) |
private IAnnotation |
JDK15TagFactory.createDataProviderTag(java.lang.reflect.Method method,
java.lang.annotation.Annotation a) |
private IAnnotation |
JDK15TagFactory.createFactoryTag(java.lang.Class<?> cls,
java.lang.annotation.Annotation a) |
private IAnnotation |
JDK15TagFactory.createListenersTag(java.lang.annotation.Annotation a) |
private IAnnotation |
JDK15TagFactory.createObjectFactoryTag() |
private IAnnotation |
JDK15TagFactory.createParametersTag(java.lang.annotation.Annotation a) |
private IAnnotation |
JDK15TagFactory.createTestTag(java.lang.Class<?> cls,
java.lang.annotation.Annotation a) |
private IAnnotation |
JDK15TagFactory.maybeCreateNewConfigurationTag(java.lang.annotation.Annotation a,
java.lang.Class<?> annotationClass) |
Modifier and Type | Method and Description |
---|---|
static java.util.List<java.lang.Class<? extends IAnnotation>> |
AnnotationHelper.getAllAnnotations() |
Modifier and Type | Method and Description |
---|---|
private void |
JDK15AnnotationFinder.transform(IAnnotation a,
java.lang.Class<?> testClass,
java.lang.reflect.Constructor<?> testConstructor,
java.lang.reflect.Method testMethod,
java.lang.Class<?> whichClass) |
Modifier and Type | Method and Description |
---|---|
static ITestNGMethod[] |
AnnotationHelper.findMethodsWithAnnotation(java.lang.Class<?> rootClass,
java.lang.Class<? extends IAnnotation> annotationClass,
IAnnotationFinder annotationFinder,
XmlTest xmlTest)
Delegation method for creating the list of
ITestMethod s to be analysed. |
private static boolean |
AnnotationHelper.isAnnotationPresent(IAnnotationFinder annotationFinder,
java.lang.Class<?> cls,
java.lang.Class<? extends IAnnotation> annotationClass) |
private static boolean |
AnnotationHelper.isAnnotationPresent(IAnnotationFinder annotationFinder,
java.lang.reflect.Method m,
java.lang.Class<? extends IAnnotation> annotationClass) |