| Package | Description |
|---|---|
| org.testng | |
| org.testng.internal | |
| org.testng.xml |
| Modifier and Type | Interface and Description |
|---|---|
interface |
IObjectFactory
Factory used to create all test instances.
|
interface |
IObjectFactory2
Factory used to create all test instances.
|
| Modifier and Type | Method and Description |
|---|---|
void |
SuiteRunner.setObjectFactory(ITestObjectFactory objectFactory) |
void |
TestNG.setObjectFactory(ITestObjectFactory factory) |
| Modifier and Type | Class and Description |
|---|---|
class |
ObjectFactoryImpl
Default factory for test creation.
|
| Modifier and Type | Method and Description |
|---|---|
ITestObjectFactory |
IConfiguration.getObjectFactory() |
ITestObjectFactory |
Configuration.getObjectFactory() |
| Modifier and Type | Method and Description |
|---|---|
static Object |
ClassHelper.createInstance(Class<?> declaringClass,
Map<Class<?>,IClass> classes,
XmlTest xmlTest,
IAnnotationFinder finder,
ITestObjectFactory objectFactory)
Create an instance for the given class.
|
protected IClass |
BaseClassFinder.findOrCreateIClass(ITestContext context,
Class<?> cls,
XmlClass xmlClass,
Object instance,
IAnnotationFinder annotationFinder,
ITestObjectFactory objectFactory) |
protected IClass |
BaseClassFinder.findOrCreateIClass(ITestContext context,
Class<?> cls,
XmlClass xmlClass,
Object instance,
XmlTest xmlTest,
IAnnotationFinder annotationFinder,
ITestObjectFactory objectFactory)
Deprecated.
- This method stands deprecated as of TestNG v6.13
|
void |
IConfiguration.setObjectFactory(ITestObjectFactory m_objectFactory) |
void |
Configuration.setObjectFactory(ITestObjectFactory factory) |
| Constructor and Description |
|---|
ClassImpl(ITestContext context,
Class<?> cls,
XmlClass xmlClass,
Object instance,
Map<Class<?>,IClass> classes,
IAnnotationFinder annotationFinder,
ITestObjectFactory objectFactory) |
ClassImpl(ITestContext context,
Class<?> cls,
XmlClass xmlClass,
Object instance,
Map<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
|
FactoryMethod(ConstructorOrMethod com,
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,
Object instance,
XmlTest xmlTest,
IAnnotationFinder annotationFinder,
ITestContext testContext,
ITestObjectFactory objectFactory,
Map<Class<? extends IDataProviderListener>,IDataProviderListener> dataProviderListeners)
Deprecated.
- This constructor is un-used within TestNG and hence stands deprecated as of TestNG v6.13
|
| Modifier and Type | Method and Description |
|---|---|
ITestObjectFactory |
XmlSuite.getObjectFactory() |
| Modifier and Type | Method and Description |
|---|---|
void |
XmlSuite.setObjectFactory(ITestObjectFactory objectFactory) |
Copyright © 2024. All rights reserved.