| Package | Description |
|---|---|
| org.testng | |
| org.testng.internal | |
| org.testng.internal.annotations | |
| org.testng.internal.objects | |
| org.testng.junit | |
| org.testng.xml |
| Modifier and Type | Interface and Description |
|---|---|
interface |
IObjectFactory
Deprecated.
- This interface stands deprecated as of TestNG 7.5.0
|
interface |
IObjectFactory2
Deprecated.
- This interface stands deprecated as of TestNG 7.5.0
|
| Modifier and Type | Method and Description |
|---|---|
ITestObjectFactory |
ISuite.getObjectFactory() |
ITestObjectFactory |
SuiteRunner.getObjectFactory() |
| Modifier and Type | Method and Description |
|---|---|
void |
TestNG.setObjectFactory(ITestObjectFactory factory) |
void |
SuiteRunner.setObjectFactory(ITestObjectFactory objectFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
TestNG.setObjectFactory(Class<? extends ITestObjectFactory> c) |
| Modifier and Type | Field and Description |
|---|---|
protected ITestObjectFactory |
BaseTestMethod.m_objectFactory |
| Modifier and Type | Method and Description |
|---|---|
ITestObjectFactory |
IConfiguration.getObjectFactory() |
ITestObjectFactory |
Configuration.getObjectFactory() |
| Modifier and Type | Method and Description |
|---|---|
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 ITestNGListenerFactory |
TestListenerHelper.createListenerFactory(ITestObjectFactory objectFactory,
TestNGClassFinder finder,
Class<? extends ITestNGListenerFactory> factoryClass,
ITestContext context) |
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) |
protected IClass |
BaseClassFinder.findOrCreateIClass(ITestContext context,
Class<?> cls,
XmlClass xmlClass,
Object instance,
IAnnotationFinder annotationFinder,
ITestObjectFactory objectFactory) |
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 |
IConfiguration.setObjectFactory(ITestObjectFactory m_objectFactory) |
void |
Configuration.setObjectFactory(ITestObjectFactory factory) |
| Constructor and Description |
|---|
BaseTestMethod(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) |
ConfigurationMethod(ITestObjectFactory objectFactory,
ConstructorOrMethod com,
IAnnotationFinder annotationFinder,
boolean isBeforeSuite,
boolean isAfterSuite,
boolean isBeforeTest,
boolean isAfterTest,
boolean isBeforeClass,
boolean isAfterClass,
boolean isBeforeMethod,
boolean isAfterMethod,
String[] beforeGroups,
String[] afterGroups,
XmlTest xmlTest,
Object instance) |
DefaultListenerFactory(ITestObjectFactory objectFactory,
ITestContext context) |
TestNGMethod(ITestObjectFactory objectFactory,
Method method,
IAnnotationFinder finder,
XmlTest xmlTest,
Object instance)
Constructs a
TestNGMethod |
TestNGMethodFinder(ITestObjectFactory objectFactory,
RunInfo runInfo,
IAnnotationFinder annotationFinder) |
TestNGMethodFinder(ITestObjectFactory objectFactory,
RunInfo runInfo,
IAnnotationFinder annotationFinder,
Comparator<ITestNGMethod> comparator) |
| Modifier and Type | Method and Description |
|---|---|
static ITestNGMethod[] |
AnnotationHelper.findMethodsWithAnnotation(ITestObjectFactory objectFactory,
Class<?> rootClass,
Class<? extends IAnnotation> annotationClass,
IAnnotationFinder annotationFinder,
XmlTest xmlTest) |
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultTestObjectFactory
Intended to be the default way of instantiating objects within TestNG.
|
class |
ObjectFactoryImpl
Default factory for test creation.
|
| Modifier and Type | Method and Description |
|---|---|
static IObjectDispenser |
Dispenser.newInstance(ITestObjectFactory objectFactory) |
| Modifier and Type | Method and Description |
|---|---|
static IJUnitTestRunner |
IJUnitTestRunner.createTestRunner(ITestObjectFactory objectFactory,
ITestResultNotifier runner) |
| Constructor and Description |
|---|
JUnit3TestMethod(ITestObjectFactory objectFactory,
JUnitTestClass owner,
junit.framework.Test test) |
JUnit4TestMethod(ITestObjectFactory objectFactory,
JUnitTestClass owner,
org.junit.runner.Description desc) |
JUnit4TestRunner(ITestObjectFactory objectFactory,
ITestResultNotifier tr) |
JUnitMethodFinder(ITestObjectFactory objectFactory,
IAnnotationFinder finder) |
JUnitTestMethod(ITestObjectFactory objectFactory,
JUnitTestClass owner,
ConstructorOrMethod method,
Object instance) |
JUnitTestMethod(ITestObjectFactory objectFactory,
JUnitTestClass owner,
String methodName,
ConstructorOrMethod method,
Object instance) |
JUnitTestRunner(ITestObjectFactory objectFactory,
ITestResultNotifier tr) |
| Modifier and Type | Method and Description |
|---|---|
ITestObjectFactory |
XmlSuite.getObjectFactory()
Deprecated.
- This method stands deprecated as of TestNG
7.5.0. Use XmlSuite.getObjectFactoryClass() instead. |
| Modifier and Type | Method and Description |
|---|---|
Class<? extends ITestObjectFactory> |
XmlSuite.getObjectFactoryClass() |
| Modifier and Type | Method and Description |
|---|---|
void |
XmlSuite.setObjectFactory(ITestObjectFactory objectFactory)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
XmlSuite.setObjectFactoryClass(Class<? extends ITestObjectFactory> objectFactoryClass) |
Copyright © 2025. All rights reserved.