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