Package org.testng.internal
Class FactoryMethod
java.lang.Object
org.testng.internal.BaseTestMethod
org.testng.internal.FactoryMethod
- All Implemented Interfaces:
Cloneable,IInvocationStatus,ITestNGMethod
This class represents a method annotated with @Factory
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final IFactoryAnnotationprivate final DataProviderHolderprivate Stringprivate final Objectprivate final ITestContextFields inherited from class org.testng.internal.BaseTestMethod
m_afterGroups, m_annotationFinder, m_beforeGroups, m_currentInvocationCount, m_date, m_groups, m_groupsDependedUpon, m_id, m_method, m_methodClass, m_methodsDependedUpon, m_objectFactory, m_testClass -
Constructor Summary
ConstructorsConstructorDescriptionFactoryMethod(ConstructorOrMethod com, Object instance, IAnnotationFinder annotationFinder, ITestContext testContext, ITestObjectFactory objectFactory, DataProviderHolder holder) -
Method Summary
Modifier and TypeMethodDescriptionclone()private static String[]getAllGroups(ITestObjectFactory objectFactory, Class<?> declaringClass, XmlTest xmlTest, IAnnotationFinder annotationFinder) private voidinit(Object instance, IAnnotationFinder annotationFinder, ConstructorOrMethod com) invoke()Methods inherited from class org.testng.internal.BaseTestMethod
addFailedInvocationNumber, addMethodDependedUpon, canRunFromClass, downstreamDependencies, equals, findMethodParameters, getAfterGroups, getAnnotationFinder, getBeforeGroups, getConstructorOrMethod, getCurrentInvocationCount, getDate, getDescription, getEnabled, getFactoryMethodParamsInfo, getFailedInvocationNumbers, getGroups, getGroupsDependedUpon, getId, getInstance, getInstanceHashCodes, getInterceptedPriority, getInvocationCount, getInvocationNumbers, getInvocationTime, getInvocationTimeOut, getMethodName, getMethodsDependedUpon, getMissingGroup, getParameterInvocationCount, getParameterTypes, getPriority, getQualifiedName, getRealClass, getRetryAnalyzer, getRetryAnalyzerClass, getSignature, getSimpleName, getStringArray, getSuccessPercentage, getTestClass, getThreadPoolSize, getTimeOut, getXmlTest, hashCode, hasMoreInvocation, ignoreMissingDependencies, incrementCurrentInvocationCount, initBeforeAfterGroups, initGroups, isAfterClassConfiguration, isAfterGroupsConfiguration, isAfterMethodConfiguration, isAfterSuiteConfiguration, isAfterTestConfiguration, isAlwaysRun, isBeforeClassConfiguration, isBeforeGroupsConfiguration, isBeforeMethodConfiguration, isBeforeSuiteConfiguration, isBeforeTestConfiguration, isTest, setAlwaysRun, setDate, setDescription, setDownstreamDependencies, setEnabled, setGroups, setGroupsDependedUpon, setId, setIgnoreMissingDependencies, setInterceptedPriority, setInvocationCount, setInvocationNumbers, setInvocationTimeOut, setInvokedAt, setMethodsDependedUpon, setMissingGroup, setMoreInvocationChecker, setParameterInvocationCount, setPriority, setRetryAnalyzerClass, setSkipFailedInvocations, setTestClass, setThreadPoolSize, setTimeOut, setUpstreamDependencies, setXmlTest, skipFailedInvocations, stringify, toString, upstreamDependenciesMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.testng.ITestNGMethod
getAttributes, getDataProviderMethod, hasAfterGroupsConfiguration, hasBeforeGroupsConfiguration, isDataDriven, isIgnoreFailure
-
Field Details
-
factoryAnnotation
-
m_instance
-
m_testContext
-
m_factoryCreationFailedMessage
-
holder
-
-
Constructor Details
-
FactoryMethod
FactoryMethod(ConstructorOrMethod com, Object instance, IAnnotationFinder annotationFinder, ITestContext testContext, ITestObjectFactory objectFactory, DataProviderHolder holder)
-
-
Method Details
-
getFactoryCreationFailedMessage
-
init
-
getAllGroups
private static String[] getAllGroups(ITestObjectFactory objectFactory, Class<?> declaringClass, XmlTest xmlTest, IAnnotationFinder annotationFinder) -
invoke
-
clone
- Specified by:
clonein interfaceITestNGMethod- Specified by:
clonein classBaseTestMethod
-