Uses of Interface
org.testng.internal.annotations.IAnnotationFinder
-
Packages that use IAnnotationFinder Package Description org.testng org.testng.internal org.testng.internal.annotations org.testng.internal.invokers org.testng.internal.objects org.testng.internal.objects.pojo org.testng.junit -
-
Uses of IAnnotationFinder in org.testng
Fields in org.testng declared as IAnnotationFinder Modifier and Type Field Description private IAnnotationFinder
TestClass. annotationFinder
private IAnnotationFinder
TestRunner. m_annotationFinder
Methods in org.testng that return IAnnotationFinder Modifier and Type Method Description IAnnotationFinder
ISuite. getAnnotationFinder()
IAnnotationFinder
SuiteRunner. getAnnotationFinder()
Returns the annotation finder for the given annotation type.IAnnotationFinder
TestClass. getAnnotationFinder()
Methods in org.testng with parameters of type IAnnotationFinder Modifier and Type Method 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)
Constructors in org.testng with parameters of type IAnnotationFinder Constructor Description TestClass(ITestObjectFactory objectFactory, IClass cls, ITestMethodFinder testMethodFinder, IAnnotationFinder annotationFinder, XmlTest xmlTest, XmlClass xmlClass, java.lang.String errorMsgPrefix)
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, DataProviderHolder otherHolder)
-
Uses of IAnnotationFinder in org.testng.internal
Fields in org.testng.internal declared as IAnnotationFinder Modifier and Type Field Description private IAnnotationFinder
TestNGClassFinder. annotationFinder
private IAnnotationFinder
TestNGMethodFinder. annotationFinder
private IAnnotationFinder
RegexpExpectedExceptionsHolder. finder
protected IAnnotationFinder
BaseTestMethod. m_annotationFinder
private IAnnotationFinder
ClassImpl. m_annotationFinder
private IAnnotationFinder
Configuration. m_annotationFinder
Methods in org.testng.internal that return IAnnotationFinder Modifier and Type Method Description protected IAnnotationFinder
BaseTestMethod. getAnnotationFinder()
IAnnotationFinder
Configuration. getAnnotationFinder()
IAnnotationFinder
IConfiguration. getAnnotationFinder()
Methods in org.testng.internal with parameters of type IAnnotationFinder Modifier and Type Method 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(ITestObjectFactory objectFactory, ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, java.lang.Object instance)
static ITestNGMethod[]
ConfigurationMethod. createBeforeConfigurationMethods(ITestObjectFactory objectFactory, ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, java.lang.Object instance)
static ITestNGMethod[]
ConfigurationMethod. createClassConfigurationMethods(ITestObjectFactory objectFactory, ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, XmlTest xmlTest, 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[]
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(ITestObjectFactory objectFactory, ITestNGMethod[] methods, IAnnotationFinder finder, boolean isBeforeSuite, boolean isAfterSuite, boolean isBeforeTest, boolean isAfterTest, boolean isBeforeClass, boolean isAfterClass, boolean isBeforeMethod, boolean isAfterMethod, XmlTest xmlTest, java.lang.Object instance)
private static java.lang.Object[]
Parameters. createParameters(ConstructorOrMethod m, Parameters.MethodParameters params, IAnnotationFinder finder, XmlSuite xmlSuite, java.lang.String atName)
static ITestNGMethod[]
ConfigurationMethod. createSuiteConfigurationMethods(ITestObjectFactory objectFactory, ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, java.lang.Object instance)
static ITestNGMethod[]
ConfigurationMethod. createTestConfigurationMethods(ITestObjectFactory objectFactory, ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, XmlTest xmlTest, java.lang.Object instance)
static ITestNGMethod[]
ConfigurationMethod. createTestMethodConfigurationMethods(ITestObjectFactory objectFactory, ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, XmlTest xmlTest, java.lang.Object instance)
private static java.lang.String[]
Parameters. extractOptionalValues(IAnnotationFinder finder, ConstructorOrMethod consMethod)
static TestListenerHelper.ListenerHolder
TestListenerHelper. findAllListeners(java.lang.Class<?> cls, IAnnotationFinder finder)
private static IDataProviderMethod
Parameters. findDataProvider(ITestObjectFactory objectFactory, java.lang.Object instance, ITestClass clazz, IAnnotationFinder finder, java.lang.String name, java.lang.Class<?> dataProviderClass, boolean isDynamicDataProvider, ITestContext context)
Find a method that has a @DataProvider(name=name)private static IDataProviderMethod
Parameters. findDataProvider(ITestObjectFactory objectFactory, java.lang.Object instance, ITestClass clazz, ConstructorOrMethod m, IAnnotationFinder finder, ITestContext context)
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),@Factory(dataProvider)
on a method or @Factory(dataProvider) on a constructor.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.protected IClass
BaseClassFinder. findOrCreateIClass(ITestContext context, java.lang.Class<?> cls, XmlClass xmlClass, java.lang.Object instance, IAnnotationFinder annotationFinder, ITestObjectFactory objectFactory)
private static java.lang.String[]
FactoryMethod. getAllGroups(ITestObjectFactory objectFactory, java.lang.Class<?> declaringClass, XmlTest xmlTest, IAnnotationFinder annotationFinder)
static ParameterHolder
Parameters. handleParameters(ITestObjectFactory objectFactory, 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, DataProviderHolder holder)
If the method has parameters, fill them in.static ParameterHolder
Parameters. handleParameters(ITestObjectFactory objectFactory, 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, DataProviderHolder holder, java.lang.String annotationName)
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)
static boolean
MethodHelper. isEnabled(java.lang.Class<?> objectClass, IAnnotationFinder finder)
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)
private static boolean
TestNGMethodFinder. shouldCreateBeforeAfterGroup(java.lang.String[] groups, IAnnotationFinder finder, java.lang.Class<?> clazz, boolean isInheritGroups)
Constructors in org.testng.internal with parameters of type IAnnotationFinder Constructor Description BaseTestMethod(ITestObjectFactory objectFactory, java.lang.String methodName, ConstructorOrMethod com, IAnnotationFinder annotationFinder, java.lang.Object instance)
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)
Configuration(IAnnotationFinder finder)
ConfigurationMethod(ITestObjectFactory objectFactory, 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(ITestObjectFactory objectFactory, 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, XmlTest xmlTest, java.lang.Object instance)
FactoryMethod(ConstructorOrMethod com, java.lang.Object instance, IAnnotationFinder annotationFinder, ITestContext testContext, ITestObjectFactory objectFactory, DataProviderHolder holder)
RegexpExpectedExceptionsHolder(IAnnotationFinder finder, ITestNGMethod method)
TestNGMethod(ITestObjectFactory objectFactory, java.lang.reflect.Method method, IAnnotationFinder finder, boolean initialize, XmlTest xmlTest, java.lang.Object instance)
TestNGMethod(ITestObjectFactory objectFactory, java.lang.reflect.Method method, IAnnotationFinder finder, XmlTest xmlTest, java.lang.Object instance)
Constructs aTestNGMethod
TestNGMethodFinder(ITestObjectFactory objectFactory, RunInfo runInfo, IAnnotationFinder annotationFinder)
TestNGMethodFinder(ITestObjectFactory objectFactory, RunInfo runInfo, IAnnotationFinder annotationFinder, java.util.Comparator<ITestNGMethod> comparator)
-
Uses of IAnnotationFinder in org.testng.internal.annotations
Classes in org.testng.internal.annotations that implement IAnnotationFinder Modifier and Type Class Description class
JDK15AnnotationFinder
This class implements IAnnotationFinder with JDK5 annotationsMethods in org.testng.internal.annotations with parameters of type IAnnotationFinder Modifier and Type Method Description static IConfigurationAnnotation
AnnotationHelper. findConfiguration(IAnnotationFinder finder, java.lang.reflect.Method m)
static IConfigurationAnnotation
AnnotationHelper. findConfiguration(IAnnotationFinder finder, ConstructorOrMethod 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(ITestObjectFactory objectFactory, java.lang.Class<?> rootClass, java.lang.Class<? extends IAnnotation> annotationClass, IAnnotationFinder annotationFinder, XmlTest xmlTest)
static ITestAnnotation
AnnotationHelper. findTest(IAnnotationFinder finder, java.lang.Class<?> cls)
static ITestAnnotation
AnnotationHelper. findTest(IAnnotationFinder finder, java.lang.reflect.Method m)
static ITestAnnotation
AnnotationHelper. findTest(IAnnotationFinder finder, ITestNGMethod 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)
private static boolean
AnnotationHelper. isAnnotationPresent(IAnnotationFinder annotationFinder, java.lang.reflect.Method m, java.lang.Class<? extends IAnnotation> annotationClass)
-
Uses of IAnnotationFinder in org.testng.internal.invokers
Fields in org.testng.internal.invokers declared as IAnnotationFinder Modifier and Type Field Description private IAnnotationFinder
AbstractParallelWorker.Arguments. finder
protected IAnnotationFinder
ExpectedExceptionsHolder. finder
private IAnnotationFinder
ParameterHandler. finder
Methods in org.testng.internal.invokers that return IAnnotationFinder Modifier and Type Method Description protected IAnnotationFinder
BaseInvoker. annotationFinder()
IAnnotationFinder
AbstractParallelWorker.Arguments. getFinder()
Methods in org.testng.internal.invokers with parameters of type IAnnotationFinder Modifier and Type Method Description AbstractParallelWorker.Arguments.Builder
AbstractParallelWorker.Arguments.Builder. finder(IAnnotationFinder finder)
private static java.lang.Class<?>[]
ExpectedExceptionsHolder. findExpectedClasses(IAnnotationFinder finder, ITestNGMethod method)
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.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)
Constructors in org.testng.internal.invokers with parameters of type IAnnotationFinder Constructor Description ExpectedExceptionsHolder(IAnnotationFinder finder, ITestNGMethod method, IExpectedExceptionsHolder holder)
ParameterHandler(ITestObjectFactory objectFactory, IAnnotationFinder finder, DataProviderHolder holder, int verbose)
-
Uses of IAnnotationFinder in org.testng.internal.objects
Methods in org.testng.internal.objects with parameters of type IAnnotationFinder Modifier and Type Method Description (package private) static <T> T
SimpleObjectDispenser. createInstance(java.lang.Class<T> declaringClass, java.util.Map<java.lang.Class<?>,IClass> classes, XmlTest xmlTest, IAnnotationFinder finder, ITestObjectFactory objectFactory, boolean create, java.lang.String errorMsgPrefix)
private static <T> java.lang.reflect.Constructor<T>
SimpleObjectDispenser. findAnnotatedConstructor(IAnnotationFinder finder, java.lang.Class<T> declaringClass)
Find the best constructor given the parameters found on the annotationprivate static <T> T
SimpleObjectDispenser. instantiateUsingParameterizedConstructor(IAnnotationFinder finder, java.lang.reflect.Constructor<T> constructor, XmlTest xmlTest, ITestObjectFactory objectFactory)
-
Uses of IAnnotationFinder in org.testng.internal.objects.pojo
Fields in org.testng.internal.objects.pojo declared as IAnnotationFinder Modifier and Type Field Description private IAnnotationFinder
DetailedAttributes. finder
Methods in org.testng.internal.objects.pojo that return IAnnotationFinder Modifier and Type Method Description IAnnotationFinder
DetailedAttributes. getFinder()
Methods in org.testng.internal.objects.pojo with parameters of type IAnnotationFinder Modifier and Type Method Description void
DetailedAttributes. setFinder(IAnnotationFinder finder)
-
Uses of IAnnotationFinder in org.testng.junit
Fields in org.testng.junit declared as IAnnotationFinder Modifier and Type Field Description private IAnnotationFinder
JUnitMethodFinder. m_annotationFinder
Constructors in org.testng.junit with parameters of type IAnnotationFinder Constructor Description JUnitMethodFinder(ITestObjectFactory objectFactory, IAnnotationFinder finder)
-