Package | Description |
---|---|
org.testng | |
org.testng.internal | |
org.testng.internal.annotations | |
org.testng.junit |
Modifier and Type | Method and Description |
---|---|
IAnnotationFinder |
ISuite.getAnnotationFinder() |
IAnnotationFinder |
SuiteRunner.getAnnotationFinder()
Returns the annotation finder for the given annotation type.
|
Constructor and Description |
---|
TestRunner(IConfiguration configuration,
ISuite suite,
XmlTest test,
String outputDirectory,
IAnnotationFinder finder,
boolean skipFailedInvocationCounts,
Collection<IInvokedMethodListener> invokedMethodListeners,
List<IClassListener> classListeners) |
Modifier and Type | Field and Description |
---|---|
protected IAnnotationFinder |
ExpectedExceptionsHolder.finder |
protected IAnnotationFinder |
BaseTestMethod.m_annotationFinder |
Modifier and Type | Method and Description |
---|---|
IAnnotationFinder |
Configuration.getAnnotationFinder() |
protected IAnnotationFinder |
BaseTestMethod.getAnnotationFinder() |
IAnnotationFinder |
IConfiguration.getAnnotationFinder() |
Modifier and Type | Method and Description |
---|---|
static ITestNGMethod[] |
MethodHelper.collectAndOrderMethods(List<ITestNGMethod> methods,
boolean forTests,
RunInfo runInfo,
IAnnotationFinder finder,
boolean unique,
List<ITestNGMethod> outExcludedMethods)
Collects and orders test or configuration methods
|
static ITestNGMethod[] |
ConfigurationMethod.createAfterConfigurationMethods(ITestNGMethod[] methods,
IAnnotationFinder annotationFinder,
boolean isBefore,
Object instance) |
static ITestNGMethod[] |
ConfigurationMethod.createBeforeConfigurationMethods(ITestNGMethod[] methods,
IAnnotationFinder annotationFinder,
boolean isBefore,
Object instance) |
static ITestNGMethod[] |
ConfigurationMethod.createClassConfigurationMethods(ITestNGMethod[] methods,
IAnnotationFinder annotationFinder,
boolean isBefore,
Object instance) |
static Object[] |
Parameters.createConfigurationParameters(Method m,
Map<String,String> params,
Object[] parameterValues,
ITestNGMethod currentTestMethod,
IAnnotationFinder finder,
XmlSuite xmlSuite,
ITestContext ctx,
ITestResult testResult)
Creates the parameters needed for the specified @Configuration
Method . |
static Object |
ClassHelper.createInstance(Class<?> declaringClass,
Map<Class,IClass> classes,
XmlTest xmlTest,
IAnnotationFinder finder,
ITestObjectFactory objectFactory)
Create an instance for the given class.
|
static Object |
ClassHelper.createInstance1(Class<?> declaringClass,
Map<Class,IClass> classes,
XmlTest xmlTest,
IAnnotationFinder finder,
IObjectFactory objectFactory) |
static Object[] |
Parameters.createInstantiationParameters(Constructor ctor,
String methodAnnotation,
IAnnotationFinder finder,
String[] parameterNames,
Map<String,String> params,
XmlSuite xmlSuite)
Creates the parameters needed for constructing a test class instance.
|
static ITestNGMethod[] |
ConfigurationMethod.createSuiteConfigurationMethods(ITestNGMethod[] methods,
IAnnotationFinder annotationFinder,
boolean isBefore,
Object instance) |
static ITestNGMethod[] |
ConfigurationMethod.createTestConfigurationMethods(ITestNGMethod[] methods,
IAnnotationFinder annotationFinder,
boolean isBefore,
Object instance) |
static ITestNGMethod[] |
ConfigurationMethod.createTestMethodConfigurationMethods(ITestNGMethod[] methods,
IAnnotationFinder annotationFinder,
boolean isBefore,
Object instance) |
static String[] |
Utils.dependentGroupsForThisMethodForConfiguration(Method m,
IAnnotationFinder finder) |
static String[] |
Utils.dependentGroupsForThisMethodForTest(Method m,
IAnnotationFinder finder) |
static ConstructorOrMethod |
ClassHelper.findDeclaredFactoryMethod(Class<?> cls,
IAnnotationFinder finder)
For the given class, returns the method annotated with @Factory or null
if none is found.
|
protected IClass |
BaseClassFinder.findOrCreateIClass(ITestContext context,
Class cls,
XmlClass xmlClass,
Object instance,
XmlTest xmlTest,
IAnnotationFinder annotationFinder,
ITestObjectFactory objectFactory) |
static String[] |
Utils.groupsForThisMethodForConfiguration(Method m,
IAnnotationFinder finder) |
static String[] |
Utils.groupsForThisMethodForTest(Method m,
IAnnotationFinder finder) |
static ParameterHolder |
Parameters.handleParameters(ITestNGMethod testMethod,
Map<String,String> allParameterNames,
Object instance,
Parameters.MethodParameters methodParams,
XmlSuite xmlSuite,
IAnnotationFinder annotationFinder,
Object fedInstance)
If the method has parameters, fill them in.
|
protected static Iterator<Object[]> |
MethodInvocationHelper.invokeDataProvider(Object instance,
Method dataProvider,
ITestNGMethod method,
ITestContext testContext,
Object fedInstance,
IAnnotationFinder annotationFinder) |
protected static boolean |
MethodHelper.isEnabled(Class<?> objectClass,
IAnnotationFinder finder) |
protected static boolean |
MethodHelper.isEnabled(Method m,
IAnnotationFinder finder) |
static boolean |
TestNGClassFinder.isTestNGClass(Class<?> c,
IAnnotationFinder annotationFinder) |
void |
Configuration.setAnnotationFinder(IAnnotationFinder finder) |
void |
IConfiguration.setAnnotationFinder(IAnnotationFinder finder) |
Constructor and Description |
---|
BaseTestMethod(String methodName,
ConstructorOrMethod com,
IAnnotationFinder annotationFinder,
Object instance) |
BaseTestMethod(String methodName,
Method method,
IAnnotationFinder annotationFinder,
Object instance)
Constructs a
BaseTestMethod TODO cquezel JavaDoc. |
ClassImpl(ITestContext context,
Class cls,
XmlClass xmlClass,
Object instance,
Map<Class,IClass> classes,
XmlTest xmlTest,
IAnnotationFinder annotationFinder,
ITestObjectFactory objectFactory) |
Configuration(IAnnotationFinder finder) |
ConfigurationMethod(ConstructorOrMethod com,
IAnnotationFinder annotationFinder,
boolean isBeforeSuite,
boolean isAfterSuite,
boolean isBeforeTest,
boolean isAfterTest,
boolean isBeforeClass,
boolean isAfterClass,
boolean isBeforeMethod,
boolean isAfterMethod,
String[] beforeGroups,
String[] afterGroups,
Object instance) |
ConfigurationMethod(Method method,
IAnnotationFinder annotationFinder,
boolean isBeforeSuite,
boolean isAfterSuite,
boolean isBeforeTest,
boolean isAfterTest,
boolean isBeforeClass,
boolean isAfterClass,
boolean isBeforeMethod,
boolean isAfterMethod,
String[] beforeGroups,
String[] afterGroups,
Object instance)
Deprecated.
use #ConfigurationMethod(ConstructorOrMethod,...) instead.
|
ExpectedExceptionsHolder(IAnnotationFinder finder,
ITestNGMethod method,
IExpectedExceptionsHolder holder) |
FactoryMethod(ConstructorOrMethod com,
Object instance,
XmlTest xmlTest,
IAnnotationFinder annotationFinder,
ITestContext testContext) |
RegexpExpectedExceptionsHolder(IAnnotationFinder finder,
ITestNGMethod method) |
TestNGMethod(Method method,
IAnnotationFinder finder,
XmlTest xmlTest,
Object instance)
Constructs a
TestNGMethod |
TestNGMethodFinder(RunInfo runInfo,
IAnnotationFinder annotationFinder) |
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,
Constructor ctor) |
static IConfigurationAnnotation |
AnnotationHelper.findConfiguration(IAnnotationFinder finder,
Method m) |
static IFactoryAnnotation |
AnnotationHelper.findFactory(IAnnotationFinder finder,
Constructor c) |
static IFactoryAnnotation |
AnnotationHelper.findFactory(IAnnotationFinder finder,
Method m) |
static ITestNGMethod[] |
AnnotationHelper.findMethodsWithAnnotation(Class<?> rootClass,
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,
Class<?> cls) |
static ITestAnnotation |
AnnotationHelper.findTest(IAnnotationFinder finder,
Constructor ctor) |
static ITestAnnotation |
AnnotationHelper.findTest(IAnnotationFinder finder,
ITestNGMethod m) |
static ITestAnnotation |
AnnotationHelper.findTest(IAnnotationFinder finder,
Method m) |
Constructor and Description |
---|
JUnitMethodFinder(String testName,
IAnnotationFinder finder) |
Copyright © 2017. All rights reserved.