|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.testng.internal.BaseTestMethod
org.testng.internal.TestNGMethod
public class TestNGMethod
This class represents a test method.
Field Summary | |
---|---|
static java.util.Comparator<ITestNGMethod> |
SORT_BY_CLASS
Sorts ITestNGMethod by Class name. |
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 | |
---|---|
TestNGMethod(java.lang.reflect.Method method,
IAnnotationFinder finder)
Constructs a TestNGMethod |
Method Summary | |
---|---|
TestNGMethod |
clone()
Clones the current TestNGMethod and its @BeforeMethod and @AfterMethod methods. |
int |
getInvocationCount()
|
int |
getSuccessPercentage()
Default value for successPercentage. |
int |
getThreadPoolSize()
|
long |
getTimeOut()
|
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. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.util.Comparator<ITestNGMethod> SORT_BY_CLASS
Constructor Detail |
---|
public TestNGMethod(java.lang.reflect.Method method, IAnnotationFinder finder)
TestNGMethod
method
- finder
- Method Detail |
---|
public long getTimeOut()
getTimeOut
in interface ITestNGMethod
getTimeOut
in class BaseTestMethod
public int getInvocationCount()
getInvocationCount
in interface ITestNGMethod
getInvocationCount
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 TestNGMethod clone()
TestNGMethod
and its @BeforeMethod and @AfterMethod methods.
clone
in interface ITestNGMethod
clone
in class BaseTestMethod
BaseTestMethod.clone()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |