Uses of Interface
org.testng.ITestObjectFactory
Packages that use ITestObjectFactory
Package
Description
-
Uses of ITestObjectFactory in org.testng
Subinterfaces of ITestObjectFactory in org.testngModifier and TypeInterfaceDescriptioninterface
Deprecated.- This interface stands deprecated as of TestNG 7.5.0interface
Deprecated.- This interface stands deprecated as of TestNG 7.5.0Fields in org.testng declared as ITestObjectFactoryModifier and TypeFieldDescriptionprivate static final ITestObjectFactory
TestNG.DEFAULT_OBJECT_FACTORY
private ITestObjectFactory
TestNG.m_objectFactory
private ITestObjectFactory
TestRunner.m_objectFactory
private ITestObjectFactory
SuiteRunner.objectFactory
private final ITestObjectFactory
TestClass.objectFactory
Methods in org.testng that return ITestObjectFactoryMethods in org.testng with parameters of type ITestObjectFactoryModifier and TypeMethodDescriptionvoid
SuiteRunner.setObjectFactory
(ITestObjectFactory objectFactory) void
TestNG.setObjectFactory
(ITestObjectFactory factory) Method parameters in org.testng with type arguments of type ITestObjectFactoryModifier and TypeMethodDescriptionvoid
TestNG.setObjectFactory
(Class<? extends ITestObjectFactory> c) Constructors in org.testng with parameters of type ITestObjectFactoryModifierConstructorDescriptionprotected
TestClass
(ITestObjectFactory objectFactory, IClass cls, ITestMethodFinder testMethodFinder, IAnnotationFinder annotationFinder, XmlTest xmlTest, XmlClass xmlClass, String errorMsgPrefix) -
Uses of ITestObjectFactory in org.testng.internal
Fields in org.testng.internal declared as ITestObjectFactoryModifier and TypeFieldDescriptionprotected final ITestObjectFactory
BaseTestMethod.m_objectFactory
private final ITestObjectFactory
ClassImpl.m_objectFactory
private ITestObjectFactory
Configuration.m_objectFactory
private final ITestObjectFactory
DefaultListenerFactory.m_objectFactory
private final ITestObjectFactory
TestNGClassFinder.objectFactory
private final ITestObjectFactory
TestNGMethodFinder.objectFactory
Methods in org.testng.internal that return ITestObjectFactoryModifier and TypeMethodDescriptionprivate ITestObjectFactory
TestNGClassFinder.createObjectFactory
(Set<Class<?>> allClasses, ITestObjectFactory fallback) Configuration.getObjectFactory()
IConfiguration.getObjectFactory()
Methods in org.testng.internal with parameters of type ITestObjectFactoryModifier and TypeMethodDescriptionstatic 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 ITestNGListenerFactory
TestListenerHelper.createListenerFactory
(ITestObjectFactory objectFactory, TestNGClassFinder finder, Class<? extends ITestNGListenerFactory> factoryClass, ITestContext context) 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 ITestObjectFactory
TestNGClassFinder.createObjectFactory
(Set<Class<?>> allClasses, ITestObjectFactory fallback) 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 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) 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.void
Configuration.setObjectFactory
(ITestObjectFactory factory) void
IConfiguration.setObjectFactory
(ITestObjectFactory m_objectFactory) Constructors in org.testng.internal with parameters of type ITestObjectFactoryModifierConstructorDescriptionBaseTestMethod
(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) 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) DefaultListenerFactory
(ITestObjectFactory objectFactory, ITestContext context) (package private)
FactoryMethod
(ConstructorOrMethod com, Object instance, IAnnotationFinder annotationFinder, ITestContext testContext, ITestObjectFactory objectFactory, DataProviderHolder holder) 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 ITestObjectFactory in org.testng.internal.annotations
Methods in org.testng.internal.annotations with parameters of type ITestObjectFactoryModifier and TypeMethodDescriptionstatic ITestNGMethod[]
AnnotationHelper.findMethodsWithAnnotation
(ITestObjectFactory objectFactory, Class<?> rootClass, Class<? extends IAnnotation> annotationClass, IAnnotationFinder annotationFinder, XmlTest xmlTest) -
Uses of ITestObjectFactory in org.testng.internal.invokers
Fields in org.testng.internal.invokers declared as ITestObjectFactoryConstructors in org.testng.internal.invokers with parameters of type ITestObjectFactoryModifierConstructorDescription(package private)
ParameterHandler
(ITestObjectFactory objectFactory, IAnnotationFinder finder, DataProviderHolder holder, int verbose) -
Uses of ITestObjectFactory in org.testng.internal.objects
Classes in org.testng.internal.objects that implement ITestObjectFactoryModifier and TypeClassDescriptionclass
Intended to be the default way of instantiating objects within TestNG.class
Default factory for test creation.Fields in org.testng.internal.objects declared as ITestObjectFactoryModifier and TypeFieldDescriptionprivate final ITestObjectFactory
SimpleObjectDispenser.objectFactory
Methods in org.testng.internal.objects with parameters of type ITestObjectFactoryModifier and TypeMethodDescriptionprivate static Object
SimpleObjectDispenser.computeParameters
(Map<Class<?>, IClass> classes, Class<?> ec, ITestObjectFactory factory) (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> T
SimpleObjectDispenser.instantiateUsingDefaultConstructor
(Class<T> declaringClass, Map<Class<?>, IClass> classes, XmlTest xmlTest, ITestObjectFactory factory) private static <T> T
SimpleObjectDispenser.instantiateUsingParameterizedConstructor
(IAnnotationFinder finder, Constructor<T> constructor, XmlTest xmlTest, ITestObjectFactory objectFactory) static IObjectDispenser
Dispenser.newInstance
(ITestObjectFactory objectFactory) Constructors in org.testng.internal.objects with parameters of type ITestObjectFactoryModifierConstructorDescription(package private)
SimpleObjectDispenser
(ITestObjectFactory objectFactory) -
Uses of ITestObjectFactory in org.testng.junit
Fields in org.testng.junit declared as ITestObjectFactoryModifier and TypeFieldDescriptionprivate final ITestObjectFactory
JUnitTestRunner.m_objectFactory
Deprecated.private final ITestObjectFactory
JUnit4TestRunner.objectFactory
Deprecated.private final ITestObjectFactory
JUnitMethodFinder.objectFactory
Deprecated.Methods in org.testng.junit with parameters of type ITestObjectFactoryModifier and TypeMethodDescriptionprivate ITestResult
JUnit4TestRunner.createTestResult
(ITestObjectFactory objectFactory, org.junit.runner.Description test) Deprecated.static IJUnitTestRunner
IJUnitTestRunner.createTestRunner
(ITestObjectFactory objectFactory, ITestResultNotifier runner) Deprecated.Constructors in org.testng.junit with parameters of type ITestObjectFactoryModifierConstructorDescriptionJUnit3TestMethod
(ITestObjectFactory objectFactory, JUnitTestClass owner, junit.framework.Test test) Deprecated.JUnit4TestMethod
(ITestObjectFactory objectFactory, JUnitTestClass owner, org.junit.runner.Description desc) Deprecated.JUnit4TestRunner
(ITestObjectFactory objectFactory, ITestResultNotifier tr) Deprecated.JUnitMethodFinder
(ITestObjectFactory objectFactory, IAnnotationFinder finder) Deprecated.protected
JUnitTestMethod
(ITestObjectFactory objectFactory, JUnitTestClass owner, String methodName, ConstructorOrMethod method, Object instance) Deprecated.protected
JUnitTestMethod
(ITestObjectFactory objectFactory, JUnitTestClass owner, ConstructorOrMethod method, Object instance) Deprecated.JUnitTestRunner
(ITestObjectFactory objectFactory, ITestResultNotifier tr) Deprecated. -
Uses of ITestObjectFactory in org.testng.xml
Fields in org.testng.xml with type parameters of type ITestObjectFactoryModifier and TypeFieldDescriptionprivate Class
<? extends ITestObjectFactory> XmlSuite.m_objectFactoryClass
Methods in org.testng.xml that return ITestObjectFactoryModifier and TypeMethodDescriptionXmlSuite.getObjectFactory()
Deprecated.- This method stands deprecated as of TestNG7.5.0
.Methods in org.testng.xml that return types with arguments of type ITestObjectFactoryModifier and TypeMethodDescriptionClass
<? extends ITestObjectFactory> XmlSuite.getObjectFactoryClass()
Methods in org.testng.xml with parameters of type ITestObjectFactoryModifier and TypeMethodDescriptionvoid
XmlSuite.setObjectFactory
(ITestObjectFactory objectFactory) Deprecated.Method parameters in org.testng.xml with type arguments of type ITestObjectFactoryModifier and TypeMethodDescriptionvoid
XmlSuite.setObjectFactoryClass
(Class<? extends ITestObjectFactory> objectFactoryClass)