Uses of Interface
org.testng.internal.annotations.IAnnotationFinder
Packages that use IAnnotationFinder
Package
Description
-
Uses of IAnnotationFinder in org.testng
Fields in org.testng declared as IAnnotationFinderModifier and TypeFieldDescriptionprivate IAnnotationFinder
TestClass.annotationFinder
private IAnnotationFinder
TestRunner.m_annotationFinder
Methods in org.testng that return IAnnotationFinderModifier and TypeMethodDescriptionISuite.getAnnotationFinder()
SuiteRunner.getAnnotationFinder()
Returns the annotation finder for the given annotation type.TestClass.getAnnotationFinder()
Methods in org.testng with parameters of type IAnnotationFinderModifier and TypeMethodDescriptionprivate void
TestClass.init
(IClass cls, ITestMethodFinder testMethodFinder, IAnnotationFinder annotationFinder, XmlTest xmlTest, XmlClass xmlClass) private void
TestRunner.init
(IConfiguration configuration, ISuite suite, XmlTest test, String outputDirectory, IAnnotationFinder annotationFinder, boolean skipFailedInvocationCounts, Collection<IInvokedMethodListener> invokedMethodListeners, List<IClassListener> classListeners, SuiteRunner suiteRunner) Constructors in org.testng with parameters of type IAnnotationFinderModifierConstructorDescriptionprotected
TestClass
(ITestObjectFactory objectFactory, IClass cls, ITestMethodFinder testMethodFinder, IAnnotationFinder annotationFinder, XmlTest xmlTest, XmlClass xmlClass, String errorMsgPrefix) protected
TestRunner
(IConfiguration configuration, ISuite suite, XmlTest test, String outputDirectory, IAnnotationFinder finder, boolean skipFailedInvocationCounts, Collection<IInvokedMethodListener> invokedMethodListeners, List<IClassListener> classListeners, Comparator<ITestNGMethod> comparator, DataProviderHolder otherHolder, SuiteRunner suiteRunner) -
Uses of IAnnotationFinder in org.testng.internal
Fields in org.testng.internal declared as IAnnotationFinderModifier and TypeFieldDescriptionprivate final IAnnotationFinder
TestNGClassFinder.annotationFinder
private final IAnnotationFinder
TestNGMethodFinder.annotationFinder
private final IAnnotationFinder
RegexpExpectedExceptionsHolder.finder
protected final IAnnotationFinder
BaseTestMethod.m_annotationFinder
private final IAnnotationFinder
ClassImpl.m_annotationFinder
private IAnnotationFinder
Configuration.m_annotationFinder
Methods in org.testng.internal that return IAnnotationFinderModifier and TypeMethodDescriptionprotected IAnnotationFinder
BaseTestMethod.getAnnotationFinder()
Configuration.getAnnotationFinder()
IConfiguration.getAnnotationFinder()
Methods in org.testng.internal with parameters of type IAnnotationFinderModifier and TypeMethodDescriptionstatic ITestNGMethod[]
MethodHelper.collectAndOrderMethods
(List<ITestNGMethod> methods, boolean forTests, RunInfo runInfo, IAnnotationFinder finder, boolean unique, List<ITestNGMethod> outExcludedMethods, Comparator<ITestNGMethod> comparator) Collects and orders test or configuration methods(package private) static void
MethodGroupsHelper.collectMethodsByGroup
(ITestNGMethod[] methods, boolean forTests, List<ITestNGMethod> outIncludedMethods, 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, Object instance) static ITestNGMethod[]
ConfigurationMethod.createBeforeConfigurationMethods
(ITestObjectFactory objectFactory, ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, Object instance) static ITestNGMethod[]
ConfigurationMethod.createClassConfigurationMethods
(ITestObjectFactory objectFactory, ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, XmlTest xmlTest, 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[]
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.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, Object instance) private static Object[]
Parameters.createParameters
(ConstructorOrMethod m, Parameters.MethodParameters params, IAnnotationFinder finder, XmlSuite xmlSuite, String atName) static ITestNGMethod[]
ConfigurationMethod.createSuiteConfigurationMethods
(ITestObjectFactory objectFactory, ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, Object instance) static ITestNGMethod[]
ConfigurationMethod.createTestConfigurationMethods
(ITestObjectFactory objectFactory, ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, XmlTest xmlTest, Object instance) static ITestNGMethod[]
ConfigurationMethod.createTestMethodConfigurationMethods
(ITestObjectFactory objectFactory, ITestNGMethod[] methods, IAnnotationFinder annotationFinder, boolean isBefore, XmlTest xmlTest, Object instance) private static String[]
Parameters.extractOptionalValues
(IAnnotationFinder finder, ConstructorOrMethod consMethod) TestListenerHelper.findAllListeners
(Class<?> cls, IAnnotationFinder finder) private static IDataProviderMethod
Parameters.findDataProvider
(ITestObjectFactory objectFactory, Object instance, ITestClass clazz, IAnnotationFinder finder, String name, Class<?> dataProviderClass, boolean isDynamicDataProvider, ITestContext context) Find a method that has a @DataProvider(name=name)private static IDataProviderMethod
Parameters.findDataProvider
(ITestObjectFactory objectFactory, 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 List<ConstructorOrMethod>
ClassHelper.findDeclaredFactoryMethods
(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, IAnnotationFinder annotationFinder, ITestObjectFactory objectFactory) private static String[]
FactoryMethod.getAllGroups
(ITestObjectFactory objectFactory, Class<?> declaringClass, XmlTest xmlTest, IAnnotationFinder annotationFinder) static ParameterHolder
Parameters.handleParameters
(ITestObjectFactory objectFactory, ITestNGMethod testMethod, Map<String, String> allParameterNames, Object instance, Parameters.MethodParameters methodParams, XmlSuite xmlSuite, IAnnotationFinder annotationFinder, Object fedInstance, DataProviderHolder holder) If the method has parameters, fill them in.static ParameterHolder
Parameters.handleParameters
(ITestObjectFactory objectFactory, ITestNGMethod testMethod, Map<String, String> allParameterNames, Object instance, Parameters.MethodParameters methodParams, XmlSuite xmlSuite, IAnnotationFinder annotationFinder, Object fedInstance, DataProviderHolder holder, String annotationName) If the method has parameters, fill them in.private void
Configuration.init
(IAnnotationFinder finder) private void
FactoryMethod.init
(Object instance, IAnnotationFinder annotationFinder, ConstructorOrMethod com) static boolean
MethodHelper.isEnabled
(Class<?> objectClass, IAnnotationFinder finder) static boolean
MethodHelper.isEnabled
(Method m, IAnnotationFinder finder) private static boolean
TestNGClassFinder.isNotTestNGClass
(Class<?> c, IAnnotationFinder annotationFinder) private static boolean
TestNGClassFinder.isTestNGClass
(Class<?> c, IAnnotationFinder annotationFinder) void
Configuration.setAnnotationFinder
(IAnnotationFinder finder) void
IConfiguration.setAnnotationFinder
(IAnnotationFinder finder) private static boolean
TestNGMethodFinder.shouldCreateBeforeAfterGroup
(String[] groups, IAnnotationFinder finder, Class<?> clazz, boolean isInheritGroups) Constructors in org.testng.internal with parameters of type IAnnotationFinderModifierConstructorDescriptionBaseTestMethod
(ITestObjectFactory objectFactory, String methodName, ConstructorOrMethod com, IAnnotationFinder annotationFinder, Object instance) ClassImpl
(ITestContext context, Class<?> cls, XmlClass xmlClass, Object instance, Map<Class<?>, IClass> classes, IAnnotationFinder annotationFinder, ITestObjectFactory objectFactory) Configuration
(IAnnotationFinder finder) private
ConfigurationMethod
(ITestObjectFactory objectFactory, ConstructorOrMethod com, IAnnotationFinder annotationFinder, boolean isBeforeSuite, boolean isAfterSuite, boolean isBeforeTest, boolean isAfterTest, boolean isBeforeClass, boolean isAfterClass, boolean isBeforeMethod, boolean isAfterMethod, boolean isIgnoreFailure, String[] beforeGroups, String[] afterGroups, boolean initialize, 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, boolean isIgnoreFailure, String[] beforeGroups, String[] afterGroups, XmlTest xmlTest, Object instance) (package private)
FactoryMethod
(ConstructorOrMethod com, Object instance, IAnnotationFinder annotationFinder, ITestContext testContext, ITestObjectFactory objectFactory, DataProviderHolder holder) RegexpExpectedExceptionsHolder
(IAnnotationFinder finder, ITestNGMethod method) private
TestNGMethod
(ITestObjectFactory objectFactory, Method method, IAnnotationFinder finder, boolean initialize, XmlTest xmlTest, Object instance) TestNGMethod
(ITestObjectFactory objectFactory, Method method, IAnnotationFinder finder, XmlTest xmlTest, Object instance) Constructs aTestNGMethod
TestNGMethodFinder
(ITestObjectFactory objectFactory, RunInfo runInfo, IAnnotationFinder annotationFinder) TestNGMethodFinder
(ITestObjectFactory objectFactory, RunInfo runInfo, IAnnotationFinder annotationFinder, Comparator<ITestNGMethod> comparator) -
Uses of IAnnotationFinder in org.testng.internal.annotations
Classes in org.testng.internal.annotations that implement IAnnotationFinderModifier and TypeClassDescriptionclass
This class implements IAnnotationFinder with JDK5 annotationsMethods in org.testng.internal.annotations with parameters of type IAnnotationFinderModifier and TypeMethodDescriptionstatic IConfigurationAnnotation
AnnotationHelper.findConfiguration
(IAnnotationFinder finder, Method m) static IConfigurationAnnotation
AnnotationHelper.findConfiguration
(IAnnotationFinder finder, ConstructorOrMethod m) static IFactoryAnnotation
AnnotationHelper.findFactory
(IAnnotationFinder finder, Constructor<?> c) static IFactoryAnnotation
AnnotationHelper.findFactory
(IAnnotationFinder finder, Method m) static ITestNGMethod[]
AnnotationHelper.findMethodsWithAnnotation
(ITestObjectFactory objectFactory, Class<?> rootClass, Class<? extends IAnnotation> annotationClass, IAnnotationFinder annotationFinder, XmlTest xmlTest) static ITestAnnotation
AnnotationHelper.findTest
(IAnnotationFinder finder, Class<?> cls) static ITestAnnotation
AnnotationHelper.findTest
(IAnnotationFinder finder, Method m) static ITestAnnotation
AnnotationHelper.findTest
(IAnnotationFinder finder, ITestNGMethod m) private static boolean
AnnotationHelper.isAnnotationPresent
(IAnnotationFinder annotationFinder, Class<?> cls, Class<? extends IAnnotation> annotationClass) private static boolean
AnnotationHelper.isAnnotationPresent
(IAnnotationFinder annotationFinder, Method m) private static boolean
AnnotationHelper.isAnnotationPresent
(IAnnotationFinder annotationFinder, Method m, Class<? extends IAnnotation> annotationClass) -
Uses of IAnnotationFinder in org.testng.internal.invokers
Fields in org.testng.internal.invokers declared as IAnnotationFinderModifier and TypeFieldDescriptionprivate IAnnotationFinder
AbstractParallelWorker.Arguments.finder
protected final IAnnotationFinder
ExpectedExceptionsHolder.finder
private final IAnnotationFinder
ParameterHandler.finder
Methods in org.testng.internal.invokers that return IAnnotationFinderModifier and TypeMethodDescriptionprotected IAnnotationFinder
BaseInvoker.annotationFinder()
AbstractParallelWorker.Arguments.getFinder()
Methods in org.testng.internal.invokers with parameters of type IAnnotationFinderModifier and TypeMethodDescriptionAbstractParallelWorker.Arguments.Builder.finder
(IAnnotationFinder finder) private static Class<?>[]
ExpectedExceptionsHolder.findExpectedClasses
(IAnnotationFinder finder, ITestNGMethod method) MethodInvocationHelper.getParameters
(Method dataProvider, ITestNGMethod method, ITestContext testContext, Object fedInstance, IAnnotationFinder annotationFinder) MethodInvocationHelper.invokeDataProvider
(Object instance, Method dataProvider, ITestNGMethod method, ITestContext testContext, Object fedInstance, IAnnotationFinder annotationFinder) Constructors in org.testng.internal.invokers with parameters of type IAnnotationFinderModifierConstructorDescriptionprotected
ExpectedExceptionsHolder
(IAnnotationFinder finder, ITestNGMethod method, IExpectedExceptionsHolder holder) (package private)
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 IAnnotationFinderModifier and TypeMethodDescription(package private) static <T> T
SimpleObjectDispenser.createInstance
(Class<T> declaringClass, Map<Class<?>, IClass> classes, XmlTest xmlTest, IAnnotationFinder finder, ITestObjectFactory objectFactory, boolean create, String errorMsgPrefix) private static <T> Constructor<T>
SimpleObjectDispenser.findAnnotatedConstructor
(IAnnotationFinder finder, Class<T> declaringClass) Find the best constructor given the parameters found on the annotationprivate static <T> T
SimpleObjectDispenser.instantiateUsingParameterizedConstructor
(IAnnotationFinder finder, 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 IAnnotationFinderMethods in org.testng.internal.objects.pojo that return IAnnotationFinderMethods in org.testng.internal.objects.pojo with parameters of type IAnnotationFinder -
Uses of IAnnotationFinder in org.testng.junit
Fields in org.testng.junit declared as IAnnotationFinderModifier and TypeFieldDescriptionprivate final IAnnotationFinder
JUnitMethodFinder.m_annotationFinder
Deprecated.Constructors in org.testng.junit with parameters of type IAnnotationFinderModifierConstructorDescriptionJUnitMethodFinder
(ITestObjectFactory objectFactory, IAnnotationFinder finder) Deprecated.