Package | Description |
---|---|
org.testng | |
org.testng.internal | |
org.testng.internal.annotations | |
org.testng.junit |
Modifier and Type | Field and Description |
---|---|
private IAnnotationFinder |
TestClass.annotationFinder |
private IAnnotationFinder |
TestRunner.m_annotationFinder |
Modifier and Type | Method and Description |
---|---|
IAnnotationFinder |
ISuite.getAnnotationFinder() |
IAnnotationFinder |
TestClass.getAnnotationFinder() |
IAnnotationFinder |
SuiteRunner.getAnnotationFinder()
Returns the annotation finder for the given annotation type.
|
Modifier and Type | Method and Description |
---|---|
private void |
TestClass.init(IClass cls,
ITestMethodFinder testMethodFinder,
IAnnotationFinder annotationFinder,
XmlTest xmlTest,
XmlClass xmlClass) |
private void |
TestRunner.init(IConfiguration configuration,
ISuite suite,
XmlTest test,
java.lang.String outputDirectory,
IAnnotationFinder annotationFinder,
boolean skipFailedInvocationCounts,
java.util.Collection<IInvokedMethodListener> invokedMethodListeners,
java.util.List<IClassListener> classListeners) |
Constructor and Description |
---|
TestClass(IClass cls,
ITestMethodFinder testMethodFinder,
IAnnotationFinder annotationFinder,
RunInfo runInfo,
XmlTest xmlTest,
XmlClass xmlClass) |
TestRunner(IConfiguration configuration,
ISuite suite,
XmlTest test,
java.lang.String outputDirectory,
IAnnotationFinder finder,
boolean skipFailedInvocationCounts,
java.util.Collection<IInvokedMethodListener> invokedMethodListeners,
java.util.List<IClassListener> classListeners,
java.util.Comparator<ITestNGMethod> comparator,
java.util.Map<java.lang.Class<? extends IDataProviderListener>,IDataProviderListener> dataProviderListeners) |
Modifier and Type | Field and Description |
---|---|
private IAnnotationFinder |
TestNGClassFinder.annotationFinder |
private IAnnotationFinder |
TestNGMethodFinder.annotationFinder |
protected IAnnotationFinder |
ExpectedExceptionsHolder.finder |
private IAnnotationFinder |
RegexpExpectedExceptionsHolder.finder |
private IAnnotationFinder |
ParameterHandler.finder |
private IAnnotationFinder |
AbstractParallelWorker.Arguments.finder |
private IAnnotationFinder |
Configuration.m_annotationFinder |
private IAnnotationFinder |
Invoker.m_annotationFinder |
private IAnnotationFinder |
ClassImpl.m_annotationFinder |
protected IAnnotationFinder |
BaseTestMethod.m_annotationFinder |
Modifier and Type | Method and Description |
---|---|
IAnnotationFinder |
Configuration.getAnnotationFinder() |
IAnnotationFinder |
IConfiguration.getAnnotationFinder() |
protected IAnnotationFinder |
BaseTestMethod.getAnnotationFinder() |
IAnnotationFinder |
AbstractParallelWorker.Arguments.getFinder() |
Modifier and Type | Method and Description |
---|---|
static ITestNGMethod[] |
MethodHelper.collectAndOrderMethods(java.util.List<ITestNGMethod> methods,
boolean forTests,
RunInfo runInfo,
IAnnotationFinder finder,
boolean unique,
java.util.List<ITestNGMethod> outExcludedMethods,
java.util.Comparator<ITestNGMethod> comparator)
Collects and orders test or configuration methods
|
(package private) static void |
MethodGroupsHelper.collectMethodsByGroup(ITestNGMethod[] methods,
boolean forTests,
java.util.List<ITestNGMethod> outIncludedMethods,
java.util.List<ITestNGMethod> outExcludedMethods,
RunInfo runInfo,
IAnnotationFinder finder,
boolean unique)
Collect all the methods that belong to the included groups and exclude all
the methods that belong to an excluded group.
|
static ITestNGMethod[] |
ConfigurationMethod.createAfterConfigurationMethods(ITestNGMethod[] methods,
IAnnotationFinder annotationFinder,
boolean isBefore,
java.lang.Object instance) |
static ITestNGMethod[] |
ConfigurationMethod.createBeforeConfigurationMethods(ITestNGMethod[] methods,
IAnnotationFinder annotationFinder,
boolean isBefore,
java.lang.Object instance) |
static ITestNGMethod[] |
ConfigurationMethod.createClassConfigurationMethods(ITestNGMethod[] methods,
IAnnotationFinder annotationFinder,
boolean isBefore,
java.lang.Object instance) |
static java.lang.Object[] |
Parameters.createConfigurationParameters(java.lang.reflect.Method m,
java.util.Map<java.lang.String,java.lang.String> params,
java.lang.Object[] parameterValues,
ITestNGMethod currentTestMethod,
IAnnotationFinder finder,
XmlSuite xmlSuite,
ITestContext ctx,
ITestResult testResult)
Creates the parameters needed for the specified @Configuration
Method . |
static java.lang.Object |
ClassHelper.createInstance(java.lang.Class<?> declaringClass,
java.util.Map<java.lang.Class<?>,IClass> classes,
XmlTest xmlTest,
IAnnotationFinder finder,
ITestObjectFactory objectFactory)
Create an instance for the given class.
|
static java.lang.Object |
ClassHelper.createInstance1(java.lang.Class<?> declaringClass,
java.util.Map<java.lang.Class<?>,IClass> classes,
XmlTest xmlTest,
IAnnotationFinder finder,
IObjectFactory objectFactory) |
static java.lang.Object[] |
Parameters.createInstantiationParameters(java.lang.reflect.Constructor ctor,
java.lang.String methodAnnotation,
IAnnotationFinder finder,
java.lang.String[] parameterNames,
java.util.Map<java.lang.String,java.lang.String> params,
XmlSuite xmlSuite)
Creates the parameters needed for constructing a test class instance.
|
private static ITestNGMethod[] |
ConfigurationMethod.createMethods(ITestNGMethod[] methods,
IAnnotationFinder finder,
boolean isBeforeSuite,
boolean isAfterSuite,
boolean isBeforeTest,
boolean isAfterTest,
boolean isBeforeClass,
boolean isAfterClass,
boolean isBeforeMethod,
boolean isAfterMethod,
java.lang.String[] beforeGroups,
java.lang.String[] afterGroups,
java.lang.Object instance) |
private static java.lang.Object[] |
Parameters.createParameters(java.lang.reflect.Method m,
Parameters.MethodParameters params,
IAnnotationFinder finder,
XmlSuite xmlSuite,
java.lang.Class annotationClass,
java.lang.String atName) |
static ITestNGMethod[] |
ConfigurationMethod.createSuiteConfigurationMethods(ITestNGMethod[] methods,
IAnnotationFinder annotationFinder,
boolean isBefore,
java.lang.Object instance) |
static ITestNGMethod[] |
ConfigurationMethod.createTestConfigurationMethods(ITestNGMethod[] methods,
IAnnotationFinder annotationFinder,
boolean isBefore,
java.lang.Object instance) |
static ITestNGMethod[] |
ConfigurationMethod.createTestMethodConfigurationMethods(ITestNGMethod[] methods,
IAnnotationFinder annotationFinder,
boolean isBefore,
java.lang.Object instance) |
static java.lang.String[] |
Utils.dependentGroupsForThisMethodForConfiguration(java.lang.reflect.Method m,
IAnnotationFinder finder)
Deprecated.
Unused
|
static java.lang.String[] |
Utils.dependentGroupsForThisMethodForTest(java.lang.reflect.Method m,
IAnnotationFinder finder)
Deprecated.
Unused
|
static TestListenerHelper.ListenerHolder |
TestListenerHelper.findAllListeners(java.lang.Class<?> cls,
IAnnotationFinder finder) |
private static java.lang.reflect.Constructor<?> |
ClassHelper.findAnnotatedConstructor(IAnnotationFinder finder,
java.lang.Class<?> declaringClass)
Find the best constructor given the parameters found on the annotation
|
private static IDataProviderMethod |
Parameters.findDataProvider(java.lang.Object instance,
ITestClass clazz,
ConstructorOrMethod m,
IAnnotationFinder finder,
ITestContext context) |
private static IDataProviderMethod |
Parameters.findDataProvider(java.lang.Object instance,
ITestClass clazz,
IAnnotationFinder finder,
java.lang.String name,
java.lang.Class<?> dataProviderClass,
ITestContext context)
Find a method that has a @DataProvider(name=name)
|
private static IDataProvidable |
Parameters.findDataProviderInfo(ITestClass clazz,
ConstructorOrMethod m,
IAnnotationFinder finder)
Find the data provider info (data provider name and class) on either @Test(dataProvider),
|
static java.util.List<ConstructorOrMethod> |
ClassHelper.findDeclaredFactoryMethods(java.lang.Class<?> cls,
IAnnotationFinder finder)
For the given class, returns the method annotated with @Factory or null
if none is found.
|
AbstractParallelWorker.Arguments.Builder |
AbstractParallelWorker.Arguments.Builder.finder(IAnnotationFinder finder) |
private static java.lang.Class<?>[] |
ExpectedExceptionsHolder.findExpectedClasses(IAnnotationFinder finder,
ITestNGMethod method) |
protected IClass |
BaseClassFinder.findOrCreateIClass(ITestContext context,
java.lang.Class<?> cls,
XmlClass xmlClass,
java.lang.Object instance,
IAnnotationFinder annotationFinder,
ITestObjectFactory objectFactory) |
protected IClass |
BaseClassFinder.findOrCreateIClass(ITestContext context,
java.lang.Class<?> cls,
XmlClass xmlClass,
java.lang.Object instance,
XmlTest xmlTest,
IAnnotationFinder annotationFinder,
ITestObjectFactory objectFactory)
Deprecated.
- This method stands deprecated as of TestNG v6.13
|
private static java.lang.String[] |
FactoryMethod.getAllGroups(java.lang.Class<?> declaringClass,
XmlTest xmlTest,
IAnnotationFinder annotationFinder) |
private static java.util.List<java.lang.Object> |
MethodInvocationHelper.getParameters(java.lang.reflect.Method dataProvider,
ITestNGMethod method,
ITestContext testContext,
java.lang.Object fedInstance,
IAnnotationFinder annotationFinder) |
static java.lang.String[] |
Utils.groupsForThisMethodForConfiguration(java.lang.reflect.Method m,
IAnnotationFinder finder)
Deprecated.
Unused
|
static java.lang.String[] |
Utils.groupsForThisMethodForTest(java.lang.reflect.Method m,
IAnnotationFinder finder)
Deprecated.
Unused
|
static ParameterHolder |
Parameters.handleParameters(ITestNGMethod testMethod,
java.util.Map<java.lang.String,java.lang.String> allParameterNames,
java.lang.Object instance,
Parameters.MethodParameters methodParams,
XmlSuite xmlSuite,
IAnnotationFinder annotationFinder,
java.lang.Object fedInstance)
If the method has parameters, fill them in.
|
static ParameterHolder |
Parameters.handleParameters(ITestNGMethod testMethod,
java.util.Map<java.lang.String,java.lang.String> allParameterNames,
java.lang.Object instance,
Parameters.MethodParameters methodParams,
XmlSuite xmlSuite,
IAnnotationFinder annotationFinder,
java.lang.Object fedInstance,
java.util.Collection<IDataProviderListener> dataProviderListeners)
If the method has parameters, fill them in.
|
private void |
Configuration.init(IAnnotationFinder finder) |
private void |
FactoryMethod.init(java.lang.Object instance,
IAnnotationFinder annotationFinder,
ConstructorOrMethod com) |
protected static java.util.Iterator<java.lang.Object[]> |
MethodInvocationHelper.invokeDataProvider(java.lang.Object instance,
java.lang.reflect.Method dataProvider,
ITestNGMethod method,
ITestContext testContext,
java.lang.Object fedInstance,
IAnnotationFinder annotationFinder) |
protected static boolean |
MethodHelper.isEnabled(java.lang.Class<?> objectClass,
IAnnotationFinder finder) |
protected static boolean |
MethodHelper.isEnabled(java.lang.reflect.Method m,
IAnnotationFinder finder) |
private static boolean |
TestNGClassFinder.isNotTestNGClass(java.lang.Class<?> c,
IAnnotationFinder annotationFinder) |
private static boolean |
TestNGClassFinder.isTestNGClass(java.lang.Class<?> c,
IAnnotationFinder annotationFinder) |
void |
Configuration.setAnnotationFinder(IAnnotationFinder finder) |
void |
IConfiguration.setAnnotationFinder(IAnnotationFinder finder) |
Constructor and Description |
---|
BaseTestMethod(java.lang.String methodName,
ConstructorOrMethod com,
IAnnotationFinder annotationFinder,
java.lang.Object instance) |
BaseTestMethod(java.lang.String methodName,
java.lang.reflect.Method method,
IAnnotationFinder annotationFinder,
java.lang.Object instance)
Constructs a
BaseTestMethod TODO cquezel JavaDoc. |
ClassImpl(ITestContext context,
java.lang.Class<?> cls,
XmlClass xmlClass,
java.lang.Object instance,
java.util.Map<java.lang.Class<?>,IClass> classes,
IAnnotationFinder annotationFinder,
ITestObjectFactory objectFactory) |
ClassImpl(ITestContext context,
java.lang.Class<?> cls,
XmlClass xmlClass,
java.lang.Object instance,
java.util.Map<java.lang.Class<?>,IClass> classes,
XmlTest xmlTest,
IAnnotationFinder annotationFinder,
ITestObjectFactory objectFactory)
Deprecated.
- This constructor is un-used within TestNG and hence stands deprecated as of TestNG v6.13
|
Configuration(IAnnotationFinder finder) |
ConfigurationMethod(ConstructorOrMethod com,
IAnnotationFinder annotationFinder,
boolean isBeforeSuite,
boolean isAfterSuite,
boolean isBeforeTest,
boolean isAfterTest,
boolean isBeforeClass,
boolean isAfterClass,
boolean isBeforeMethod,
boolean isAfterMethod,
java.lang.String[] beforeGroups,
java.lang.String[] afterGroups,
boolean initialize,
java.lang.Object instance) |
ConfigurationMethod(ConstructorOrMethod com,
IAnnotationFinder annotationFinder,
boolean isBeforeSuite,
boolean isAfterSuite,
boolean isBeforeTest,
boolean isAfterTest,
boolean isBeforeClass,
boolean isAfterClass,
boolean isBeforeMethod,
boolean isAfterMethod,
java.lang.String[] beforeGroups,
java.lang.String[] afterGroups,
java.lang.Object instance) |
ConfigurationMethod(java.lang.reflect.Method method,
IAnnotationFinder annotationFinder,
boolean isBeforeSuite,
boolean isAfterSuite,
boolean isBeforeTest,
boolean isAfterTest,
boolean isBeforeClass,
boolean isAfterClass,
boolean isBeforeMethod,
boolean isAfterMethod,
java.lang.String[] beforeGroups,
java.lang.String[] afterGroups,
java.lang.Object instance)
Deprecated.
use #ConfigurationMethod(ConstructorOrMethod,...) instead.
|
ExpectedExceptionsHolder(IAnnotationFinder finder,
ITestNGMethod method,
IExpectedExceptionsHolder holder) |
FactoryMethod(ConstructorOrMethod com,
java.lang.Object instance,
IAnnotationFinder annotationFinder,
ITestContext testContext,
ITestObjectFactory objectFactory,
java.util.Map<java.lang.Class<? extends IDataProviderListener>,IDataProviderListener> dataProviderListeners) |
FactoryMethod(ConstructorOrMethod com,
java.lang.Object instance,
XmlTest xmlTest,
IAnnotationFinder annotationFinder,
ITestContext testContext,
ITestObjectFactory objectFactory)
Deprecated.
- This constructor is un-used within TestNG and hence stands deprecated as of TestNG v6.13
|
FactoryMethod(ConstructorOrMethod com,
java.lang.Object instance,
XmlTest xmlTest,
IAnnotationFinder annotationFinder,
ITestContext testContext,
ITestObjectFactory objectFactory,
java.util.Map<java.lang.Class<? extends IDataProviderListener>,IDataProviderListener> dataProviderListeners)
Deprecated.
- This constructor is un-used within TestNG and hence stands deprecated as of TestNG v6.13
|
ParameterHandler(IAnnotationFinder finder,
java.util.Collection<IDataProviderListener> listeners) |
RegexpExpectedExceptionsHolder(IAnnotationFinder finder,
ITestNGMethod method) |
TestNGMethod(java.lang.reflect.Method method,
IAnnotationFinder finder,
boolean initialize,
XmlTest xmlTest,
java.lang.Object instance) |
TestNGMethod(java.lang.reflect.Method method,
IAnnotationFinder finder,
XmlTest xmlTest,
java.lang.Object instance)
Constructs a
TestNGMethod |
TestNGMethodFinder(RunInfo runInfo,
IAnnotationFinder annotationFinder) |
TestNGMethodFinder(RunInfo runInfo,
IAnnotationFinder annotationFinder,
java.util.Comparator<ITestNGMethod> comparator) |
Modifier and Type | Class and Description |
---|---|
class |
JDK15AnnotationFinder
This class implements IAnnotationFinder with JDK5 annotations
Created on Dec 20, 2005
|
Modifier and Type | Method and Description |
---|---|
static IConfigurationAnnotation |
AnnotationHelper.findConfiguration(IAnnotationFinder finder,
java.lang.reflect.Constructor ctor) |
static IConfigurationAnnotation |
AnnotationHelper.findConfiguration(IAnnotationFinder finder,
ConstructorOrMethod m) |
static IConfigurationAnnotation |
AnnotationHelper.findConfiguration(IAnnotationFinder finder,
java.lang.reflect.Method m) |
static IFactoryAnnotation |
AnnotationHelper.findFactory(IAnnotationFinder finder,
java.lang.reflect.Constructor c) |
static IFactoryAnnotation |
AnnotationHelper.findFactory(IAnnotationFinder finder,
java.lang.reflect.Method m) |
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. |
static ITestAnnotation |
AnnotationHelper.findTest(IAnnotationFinder finder,
java.lang.Class<?> cls) |
static ITestAnnotation |
AnnotationHelper.findTest(IAnnotationFinder finder,
java.lang.reflect.Constructor ctor) |
static ITestAnnotation |
AnnotationHelper.findTest(IAnnotationFinder finder,
ITestNGMethod m) |
static ITestAnnotation |
AnnotationHelper.findTest(IAnnotationFinder finder,
java.lang.reflect.Method m) |
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[] annotationClasses) |
private static boolean |
AnnotationHelper.isAnnotationPresent(IAnnotationFinder annotationFinder,
java.lang.reflect.Method m,
java.lang.Class<? extends IAnnotation> annotationClass) |
Modifier and Type | Field and Description |
---|---|
private IAnnotationFinder |
JUnitMethodFinder.m_annotationFinder |
Constructor and Description |
---|
JUnitMethodFinder(java.lang.String testName,
IAnnotationFinder finder) |