org.testng.internal
Class FactoryMethod

java.lang.Object
  extended by org.testng.internal.BaseTestMethod
      extended by org.testng.internal.FactoryMethod
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Comparable, ITestNGMethod

public class FactoryMethod
extends BaseTestMethod

This class represents a method annotated with @Factory

Author:
Cedric Beust
See Also:
Serialized Form

Field Summary
 
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
FactoryMethod(java.lang.reflect.Method method, java.lang.Object instance, XmlTest xmlTest, IAnnotationFinder annotationFinder, ITestContext testContext)
           
 
Method Summary
 ITestNGMethod clone()
           
 java.lang.Object[] invoke()
           
 
Methods inherited from class org.testng.internal.BaseTestMethod
addMethodDependedUpon, canRunFromClass, compareTo, equals, getAfterGroups, getAnnotationFinder, getBeforeGroups, getCurrentInvocationCount, getDate, getDescription, getGroups, getGroupsDependedUpon, getIClass, getId, getInstanceHashCodes, getInstances, getInvocationCount, getMethod, getMethodName, getMethodsDependedUpon, getMissingGroup, getParameterInvocationCount, getRealClass, getRetryAnalyzer, getSignature, getStringArray, getSuccessPercentage, getTestClass, getThreadPoolSize, getTimeOut, hashCode, incrementCurrentInvocationCount, initGroups, isAfterClassConfiguration, isAfterGroupsConfiguration, isAfterMethodConfiguration, isAfterSuiteConfiguration, isAfterTestConfiguration, isAlwaysRun, isBeforeClassConfiguration, isBeforeGroupsConfiguration, isBeforeMethodConfiguration, isBeforeSuiteConfiguration, isBeforeTestConfiguration, isTest, setAlwaysRun, setDate, setDescription, setGroups, setGroupsDependedUpon, setId, setInvocationCount, setMethodsDependedUpon, setMissingGroup, setParameterInvocationCount, setRetryAnalyzer, setSkipFailedInvocations, setTestClass, setThreadPoolSize, skipFailedInvocations, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FactoryMethod

public FactoryMethod(java.lang.reflect.Method method,
                     java.lang.Object instance,
                     XmlTest xmlTest,
                     IAnnotationFinder annotationFinder,
                     ITestContext testContext)
Parameters:
testClass -
method -
Method Detail

invoke

public java.lang.Object[] invoke()

clone

public ITestNGMethod clone()
Specified by:
clone in interface ITestNGMethod
Specified by:
clone in class BaseTestMethod


Copyright © 2010. All Rights Reserved.