Package org.testng.internal
Class FactoryMethod
- java.lang.Object
-
- org.testng.internal.BaseTestMethod
-
- org.testng.internal.FactoryMethod
-
- All Implemented Interfaces:
java.lang.Cloneable
,ITestNGMethod
public class FactoryMethod extends BaseTestMethod
This class represents a method annotated with @Factory
-
-
Field Summary
Fields Modifier and Type Field Description private IFactoryAnnotation
factoryAnnotation
private java.util.Map<java.lang.Class<? extends IDataProviderListener>,IDataProviderListener>
m_dataProviderListeners
private java.lang.Object
m_instance
private ITestContext
m_testContext
private ITestObjectFactory
objectFactory
-
Fields inherited from class org.testng.internal.BaseTestMethod
DATE_COMPARATOR, m_afterGroups, m_annotationFinder, m_beforeGroups, m_currentInvocationCount, m_date, m_groups, m_groupsDependedUpon, m_id, m_method, m_methodClass, m_methodsDependedUpon, m_testClass
-
-
Constructor Summary
Constructors Constructor Description FactoryMethod(ConstructorOrMethod com, java.lang.Object instance, IAnnotationFinder annotationFinder, ITestContext testContext, ITestObjectFactory objectFactory, java.util.Map<java.lang.Class<? extends IDataProviderListener>,IDataProviderListener> dataProviderListeners)
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.13FactoryMethod(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
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ITestNGMethod
clone()
private static java.lang.String[]
getAllGroups(java.lang.Class<?> declaringClass, XmlTest xmlTest, IAnnotationFinder annotationFinder)
private void
init(java.lang.Object instance, IAnnotationFinder annotationFinder, ConstructorOrMethod com)
java.lang.Object[]
invoke()
-
Methods inherited from class org.testng.internal.BaseTestMethod
addFailedInvocationNumber, addMethodDependedUpon, canRunFromClass, equals, findMethodParameters, getAfterGroups, getAnnotationFinder, getBeforeGroups, getConstructorOrMethod, getCurrentInvocationCount, getDate, getDescription, getEnabled, getFailedInvocationNumbers, getGroups, getGroupsDependedUpon, getIClass, getId, getInstance, getInstanceHashCodes, getInstances, getInvocationCount, getInvocationNumbers, getInvocationTimeOut, getMethod, getMethodName, getMethodsDependedUpon, getMissingGroup, getParameterInvocationCount, getPriority, getQualifiedName, getRealClass, getRetryAnalyzer, getSignature, getSimpleName, getStringArray, getSuccessPercentage, getTestClass, getThreadPoolSize, getTimeOut, getTotalInvocationCount, getXmlTest, hashCode, hasMoreInvocation, ignoreMissingDependencies, incrementCurrentInvocationCount, initBeforeAfterGroups, initGroups, isAfterClassConfiguration, isAfterGroupsConfiguration, isAfterMethodConfiguration, isAfterSuiteConfiguration, isAfterTestConfiguration, isAlwaysRun, isBeforeClassConfiguration, isBeforeGroupsConfiguration, isBeforeMethodConfiguration, isBeforeSuiteConfiguration, isBeforeTestConfiguration, isTest, setAlwaysRun, setDate, setDescription, setEnabled, setGroups, setGroupsDependedUpon, setId, setIgnoreMissingDependencies, setInvocationCount, setInvocationNumbers, setInvocationTimeOut, setMethodsDependedUpon, setMissingGroup, setMoreInvocationChecker, setParameterInvocationCount, setPriority, setRetryAnalyzer, setSkipFailedInvocations, setTestClass, setThreadPoolSize, setTimeOut, setXmlTest, skipFailedInvocations, toString
-
-
-
-
Field Detail
-
factoryAnnotation
private final IFactoryAnnotation factoryAnnotation
-
m_instance
private final java.lang.Object m_instance
-
m_testContext
private final ITestContext m_testContext
-
objectFactory
private final ITestObjectFactory objectFactory
-
m_dataProviderListeners
private final java.util.Map<java.lang.Class<? extends IDataProviderListener>,IDataProviderListener> m_dataProviderListeners
-
-
Constructor Detail
-
FactoryMethod
@Deprecated public 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
FactoryMethod(ConstructorOrMethod com, java.lang.Object instance, IAnnotationFinder annotationFinder, ITestContext testContext, ITestObjectFactory objectFactory, java.util.Map<java.lang.Class<? extends IDataProviderListener>,IDataProviderListener> dataProviderListeners)
-
FactoryMethod
@Deprecated public 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
-
-
Method Detail
-
init
private void init(java.lang.Object instance, IAnnotationFinder annotationFinder, ConstructorOrMethod com)
-
getAllGroups
private static java.lang.String[] getAllGroups(java.lang.Class<?> declaringClass, XmlTest xmlTest, IAnnotationFinder annotationFinder)
-
invoke
public java.lang.Object[] invoke()
-
clone
public ITestNGMethod clone()
- Specified by:
clone
in interfaceITestNGMethod
- Specified by:
clone
in classBaseTestMethod
-
-