public class FactoryMethod extends BaseTestMethod
Modifier and Type | Field and Description |
---|---|
private IFactoryAnnotation |
factoryAnnotation |
private java.util.Map<java.lang.Class<? extends IDataProviderListener>,IDataProviderListener> |
m_dataProviderListeners |
private java.lang.String |
m_factoryCreationFailedMessage |
private java.lang.Object |
m_instance |
private ITestContext |
m_testContext |
private ITestObjectFactory |
objectFactory |
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 and Description |
---|
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 | Method and Description |
---|---|
ITestNGMethod |
clone() |
private static java.lang.String[] |
getAllGroups(java.lang.Class<?> declaringClass,
XmlTest xmlTest,
IAnnotationFinder annotationFinder) |
java.lang.String |
getFactoryCreationFailedMessage() |
private void |
init(java.lang.Object instance,
IAnnotationFinder annotationFinder,
ConstructorOrMethod com) |
IParameterInfo[] |
invoke() |
addFailedInvocationNumber, addMethodDependedUpon, canRunFromClass, equals, findMethodParameters, getAfterGroups, getAnnotationFinder, getBeforeGroups, getConstructorOrMethod, getCurrentInvocationCount, getDate, getDescription, getEnabled, getFactoryMethodParamsInfo, getFailedInvocationNumbers, getGroups, getGroupsDependedUpon, getIClass, getId, getInstance, getInstanceHashCodes, getInterceptedPriority, getInvocationCount, getInvocationNumbers, getInvocationTimeOut, getMethodName, getMethodsDependedUpon, getMissingGroup, getParameterInvocationCount, getPriority, getQualifiedName, getRealClass, getRetryAnalyzer, 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, setEnabled, setGroups, setGroupsDependedUpon, setId, setIgnoreMissingDependencies, setInterceptedPriority, setInvocationCount, setInvocationNumbers, setInvocationTimeOut, setMethodsDependedUpon, setMissingGroup, setMoreInvocationChecker, setParameterInvocationCount, setPriority, setRetryAnalyzer, setRetryAnalyzerClass, setSkipFailedInvocations, setTestClass, setThreadPoolSize, setTimeOut, setXmlTest, skipFailedInvocations, stringify, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
getAttributes, getDataProviderMethod, isDataDriven
private final IFactoryAnnotation factoryAnnotation
private final java.lang.Object m_instance
private final ITestContext m_testContext
private final ITestObjectFactory objectFactory
private final java.util.Map<java.lang.Class<? extends IDataProviderListener>,IDataProviderListener> m_dataProviderListeners
private java.lang.String m_factoryCreationFailedMessage
FactoryMethod(ConstructorOrMethod com, java.lang.Object instance, IAnnotationFinder annotationFinder, ITestContext testContext, ITestObjectFactory objectFactory, java.util.Map<java.lang.Class<? extends IDataProviderListener>,IDataProviderListener> dataProviderListeners)
public java.lang.String getFactoryCreationFailedMessage()
private void init(java.lang.Object instance, IAnnotationFinder annotationFinder, ConstructorOrMethod com)
private static java.lang.String[] getAllGroups(java.lang.Class<?> declaringClass, XmlTest xmlTest, IAnnotationFinder annotationFinder)
public IParameterInfo[] invoke()
public ITestNGMethod clone()
clone
in interface ITestNGMethod
clone
in class BaseTestMethod