public class TestNGMethod extends BaseTestMethod
| Modifier and Type | Field and Description |
|---|---|
private int |
m_invocationCount |
private int |
m_successPercentage |
private int |
m_threadPoolSize |
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| Modifier | Constructor and Description |
|---|---|
private |
TestNGMethod(java.lang.reflect.Method method,
IAnnotationFinder finder,
boolean initialize,
XmlTest xmlTest,
java.lang.Object instance) |
|
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. |
private ITestNGMethod[] |
clone(ITestNGMethod[] sources) |
private java.lang.String |
findDescription(ITestAnnotation testAnnotation,
XmlTest xmlTest) |
int |
getInvocationCount() |
int |
getSuccessPercentage()
Default value for successPercentage.
|
int |
getThreadPoolSize() |
private void |
init(XmlTest xmlTest) |
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, 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, getQualifiedName, getRealClass, getRetryAnalyzer, getSignature, getSimpleName, getStringArray, getTestClass, getTimeOut, getTotalInvocationCount, getXmlTest, hashCode, hasMoreInvocation, ignoreMissingDependencies, incrementCurrentInvocationCount, initBeforeAfterGroups, initGroups, isAfterClassConfiguration, isAfterGroupsConfiguration, isAfterMethodConfiguration, isAfterSuiteConfiguration, isAfterTestConfiguration, isAlwaysRun, isBeforeClassConfiguration, isBeforeGroupsConfiguration, isBeforeMethodConfiguration, isBeforeSuiteConfiguration, isBeforeTestConfiguration, setAlwaysRun, setDate, setDescription, setEnabled, setGroups, setGroupsDependedUpon, setId, setIgnoreMissingDependencies, setInvocationNumbers, setInvocationTimeOut, setMethodsDependedUpon, setMissingGroup, setMoreInvocationChecker, setParameterInvocationCount, setPriority, setRetryAnalyzer, setSkipFailedInvocations, setTestClass, setTimeOut, setXmlTest, skipFailedInvocations, toStringprivate int m_threadPoolSize
private int m_invocationCount
private int m_successPercentage
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)
TestNGMethodmethod - finder - private TestNGMethod(java.lang.reflect.Method method,
IAnnotationFinder finder,
boolean initialize,
XmlTest xmlTest,
java.lang.Object instance)
public int getInvocationCount()
getInvocationCount in interface ITestNGMethodgetInvocationCount in class BaseTestMethodpublic int getSuccessPercentage()
getSuccessPercentage in interface ITestNGMethodgetSuccessPercentage in class BaseTestMethodpublic boolean isTest()
isTest in interface ITestNGMethodisTest in class BaseTestMethodprivate void init(XmlTest xmlTest)
private java.lang.String findDescription(ITestAnnotation testAnnotation, XmlTest xmlTest)
public int getThreadPoolSize()
getThreadPoolSize in interface ITestNGMethodgetThreadPoolSize in class BaseTestMethodpublic void setThreadPoolSize(int threadPoolSize)
setThreadPoolSize in interface ITestNGMethodsetThreadPoolSize in class BaseTestMethodpublic void setInvocationCount(int counter)
setInvocationCount in interface ITestNGMethodsetInvocationCount in class BaseTestMethodpublic BaseTestMethod clone()
TestNGMethod and its @BeforeMethod and @AfterMethod methods.clone in interface ITestNGMethodclone in class BaseTestMethodBaseTestMethod.clone()private ITestNGMethod[] clone(ITestNGMethod[] sources)