public class TestNGMethod extends BaseTestMethod implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static java.util.Comparator<ITestNGMethod> |
SORT_BY_CLASS
Sorts ITestNGMethod by Class name.
|
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 and Description |
---|
TestNGMethod(java.lang.reflect.Method method,
IAnnotationFinder finder,
XmlTest xmlTest,
java.lang.Object instance)
Constructs a
TestNGMethod |
Modifier and Type | Method and Description |
---|---|
BaseTestMethod |
clone()
Clones the current
TestNGMethod and its @BeforeMethod and @AfterMethod methods. |
int |
getInvocationCount() |
int |
getSuccessPercentage()
Default value for successPercentage.
|
int |
getThreadPoolSize() |
int |
getTotalInvocationCount() |
boolean |
isTest() |
void |
setInvocationCount(int counter)
Sets the number of invocations for this method.
|
void |
setThreadPoolSize(int threadPoolSize)
Sets the number of threads on which this method should be invoked.
|
addFailedInvocationNumber, addMethodDependedUpon, canRunFromClass, compareTo, equals, findMethodParameters, getAfterGroups, getAnnotationFinder, getBeforeGroups, getConstructorOrMethod, getCurrentInvocationCount, getDate, getDescription, getEnabled, getFailedInvocationNumbers, getGroups, getGroupsDependedUpon, getIClass, getId, getInstance, getInstanceHashCodes, getInstances, getInvocationNumbers, getInvocationTimeOut, getMethod, getMethodName, getMethodsDependedUpon, getMissingGroup, getParameterInvocationCount, getPriority, getRealClass, getRetryAnalyzer, getSignature, getStringArray, getTestClass, getTimeOut, getXmlTest, hashCode, ignoreMissingDependencies, incrementCurrentInvocationCount, initGroups, isAfterClassConfiguration, isAfterGroupsConfiguration, isAfterMethodConfiguration, isAfterSuiteConfiguration, isAfterTestConfiguration, isAlwaysRun, isBeforeClassConfiguration, isBeforeGroupsConfiguration, isBeforeMethodConfiguration, isBeforeSuiteConfiguration, isBeforeTestConfiguration, setAlwaysRun, setDate, setDescription, setEnabled, setGroups, setGroupsDependedUpon, setId, setIgnoreMissingDependencies, setInvocationNumbers, setInvocationTimeOut, setMethodsDependedUpon, setMissingGroup, setParameterInvocationCount, setPriority, setRetryAnalyzer, setSkipFailedInvocations, setTestClass, setTimeOut, setXmlTest, skipFailedInvocations, toString
public static final java.util.Comparator<ITestNGMethod> SORT_BY_CLASS
public TestNGMethod(java.lang.reflect.Method method, IAnnotationFinder finder, XmlTest xmlTest, java.lang.Object instance)
TestNGMethod
method
- finder
- public int getInvocationCount()
getInvocationCount
in interface ITestNGMethod
getInvocationCount
in class BaseTestMethod
public int getTotalInvocationCount()
getTotalInvocationCount
in interface ITestNGMethod
getTotalInvocationCount
in class BaseTestMethod
public int getSuccessPercentage()
getSuccessPercentage
in interface ITestNGMethod
getSuccessPercentage
in class BaseTestMethod
public boolean isTest()
isTest
in interface ITestNGMethod
isTest
in class BaseTestMethod
public int getThreadPoolSize()
getThreadPoolSize
in interface ITestNGMethod
getThreadPoolSize
in class BaseTestMethod
public void setThreadPoolSize(int threadPoolSize)
setThreadPoolSize
in interface ITestNGMethod
setThreadPoolSize
in class BaseTestMethod
public void setInvocationCount(int counter)
setInvocationCount
in interface ITestNGMethod
setInvocationCount
in class BaseTestMethod
public BaseTestMethod clone()
TestNGMethod
and its @BeforeMethod and @AfterMethod methods.clone
in interface ITestNGMethod
clone
in class BaseTestMethod
BaseTestMethod.clone()