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 | Field and Description |
---|---|
private ITestObjectFactory |
TestNG.m_objectFactory |
private ITestObjectFactory |
SuiteRunner.objectFactory |
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 | Field and Description |
---|---|
private ITestObjectFactory |
Configuration.m_objectFactory |
private ITestObjectFactory |
ClassImpl.m_objectFactory |
private ITestObjectFactory |
FactoryMethod.objectFactory |
private ITestObjectFactory |
TestNGClassFinder.objectFactory |
Modifier and Type | Method and Description |
---|---|
private ITestObjectFactory |
TestNGClassFinder.createObjectFactory(java.util.Set<java.lang.Class<?>> allClasses) |
ITestObjectFactory |
Configuration.getObjectFactory() |
ITestObjectFactory |
IConfiguration.getObjectFactory() |
Modifier and Type | Method and 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,
boolean create)
Deprecated.
- This method is deprecated as of TestNG 7.0.0
|
static java.lang.Object |
InstanceCreator.createInstance(java.lang.Class<?> declaringClass,
java.util.Map<java.lang.Class<?>,IClass> classes,
XmlTest xmlTest,
IAnnotationFinder finder,
ITestObjectFactory objectFactory,
boolean create,
java.lang.String errorMsgPrefix)
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) |
void |
Configuration.setObjectFactory(ITestObjectFactory factory) |
void |
IConfiguration.setObjectFactory(ITestObjectFactory m_objectFactory) |
Constructor and 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) |
FactoryMethod(ConstructorOrMethod com,
java.lang.Object instance,
IAnnotationFinder annotationFinder,
ITestContext testContext,
ITestObjectFactory objectFactory,
java.util.Map<java.lang.Class<? extends IDataProviderListener>,IDataProviderListener> dataProviderListeners) |
Modifier and Type | Field and Description |
---|---|
private ITestObjectFactory |
XmlSuite.m_objectFactory |
Modifier and Type | Method and Description |
---|---|
ITestObjectFactory |
XmlSuite.getObjectFactory() |
Modifier and Type | Method and Description |
---|---|
void |
XmlSuite.setObjectFactory(ITestObjectFactory objectFactory) |