|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.testng.internal.BaseTestMethod
public abstract class BaseTestMethod
Superclass to represent both @Test and @Configuration methods.
| Field Summary | |
|---|---|
static java.util.Comparator<?> |
DATE_COMPARATOR
Compares two ITestNGMethod by date. |
protected java.lang.String[] |
m_afterGroups
|
protected IAnnotationFinder |
m_annotationFinder
|
protected java.lang.String[] |
m_beforeGroups
|
protected IAtomicInteger |
m_currentInvocationCount
|
protected long |
m_date
|
protected java.lang.String[] |
m_groups
|
protected java.lang.String[] |
m_groupsDependedUpon
|
protected java.lang.String |
m_id
|
protected java.lang.reflect.Method |
m_method
|
protected java.lang.Class<?> |
m_methodClass
|
protected java.lang.String[] |
m_methodsDependedUpon
|
protected ITestClass |
m_testClass
The test class on which the test method was found. |
| Constructor Summary | |
|---|---|
BaseTestMethod(java.lang.reflect.Method method,
IAnnotationFinder annotationFinder)
Constructs a BaseTestMethod TODO cquezel JavaDoc. |
|
| Method Summary | |
|---|---|
void |
addMethodDependedUpon(java.lang.String method)
|
boolean |
canRunFromClass(IClass testClass)
Returns if this ITestNGMethod can be invoked from within IClass. |
abstract ITestNGMethod |
clone()
|
int |
compareTo(java.lang.Object o)
TODO cquezel JavaDoc. |
boolean |
equals(java.lang.Object obj)
Compares two BaseTestMethod using the test class then the associated Java Method. |
java.lang.String[] |
getAfterGroups()
|
protected IAnnotationFinder |
getAnnotationFinder()
TODO cquezel JavaDoc. |
java.lang.String[] |
getBeforeGroups()
Before and After groups |
int |
getCurrentInvocationCount()
|
long |
getDate()
|
java.lang.String |
getDescription()
|
java.lang.String[] |
getGroups()
|
java.lang.String[] |
getGroupsDependedUpon()
|
protected IClass |
getIClass()
TODO cquezel JavaDoc. |
java.lang.String |
getId()
|
long[] |
getInstanceHashCodes()
Needed for serialization. |
java.lang.Object[] |
getInstances()
|
int |
getInvocationCount()
|
java.lang.reflect.Method |
getMethod()
Returns the corresponding Java test method. |
java.lang.String |
getMethodName()
Returns the method name. |
java.lang.String[] |
getMethodsDependedUpon()
|
java.lang.String |
getMissingGroup()
If a group was not found. |
int |
getParameterInvocationCount()
|
java.lang.Class<?> |
getRealClass()
|
IRetryAnalyzer |
getRetryAnalyzer()
|
protected java.lang.String |
getSignature()
TODO cquezel JavaDoc. |
protected java.lang.String[] |
getStringArray(java.lang.String[] methodArray,
java.lang.String[] classArray)
TODO cquezel JavaDoc. |
int |
getSuccessPercentage()
Default value for successPercentage. |
ITestClass |
getTestClass()
|
int |
getThreadPoolSize()
|
long |
getTimeOut()
|
int |
hashCode()
This implementation returns the associated Java Method's hash code. |
void |
incrementCurrentInvocationCount()
|
protected void |
initGroups(java.lang.Class<?> annotationClass)
TODO cquezel JavaDoc. |
boolean |
isAfterClassConfiguration()
|
boolean |
isAfterGroupsConfiguration()
|
boolean |
isAfterMethodConfiguration()
|
boolean |
isAfterSuiteConfiguration()
|
boolean |
isAfterTestConfiguration()
|
boolean |
isAlwaysRun()
|
boolean |
isBeforeClassConfiguration()
|
boolean |
isBeforeGroupsConfiguration()
|
boolean |
isBeforeMethodConfiguration()
|
boolean |
isBeforeSuiteConfiguration()
|
boolean |
isBeforeTestConfiguration()
|
boolean |
isTest()
|
protected void |
setAlwaysRun(boolean alwaysRun)
TODO cquezel JavaDoc. |
void |
setDate(long date)
|
void |
setDescription(java.lang.String description)
TODO cquezel JavaDoc. |
protected void |
setGroups(java.lang.String[] groups)
|
protected void |
setGroupsDependedUpon(java.lang.String[] groups)
|
void |
setId(java.lang.String id)
|
void |
setInvocationCount(int counter)
No-op. |
protected void |
setMethodsDependedUpon(java.lang.String[] methods)
|
void |
setMissingGroup(java.lang.String group)
|
void |
setParameterInvocationCount(int n)
|
void |
setRetryAnalyzer(IRetryAnalyzer retryAnalyzer)
|
void |
setSkipFailedInvocations(boolean s)
|
void |
setTestClass(ITestClass tc)
Sets the test class having this method. |
void |
setThreadPoolSize(int threadPoolSize)
No-op. |
boolean |
skipFailedInvocations()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected ITestClass m_testClass
protected final transient java.lang.Class<?> m_methodClass
protected final transient java.lang.reflect.Method m_method
protected java.lang.String m_id
protected long m_date
protected final transient IAnnotationFinder m_annotationFinder
protected java.lang.String[] m_groups
protected java.lang.String[] m_groupsDependedUpon
protected java.lang.String[] m_methodsDependedUpon
protected java.lang.String[] m_beforeGroups
protected java.lang.String[] m_afterGroups
protected IAtomicInteger m_currentInvocationCount
public static final java.util.Comparator<?> DATE_COMPARATOR
| Constructor Detail |
|---|
public BaseTestMethod(java.lang.reflect.Method method,
IAnnotationFinder annotationFinder)
BaseTestMethod TODO cquezel JavaDoc.
method - annotationFinder - | Method Detail |
|---|
public boolean isAlwaysRun()
isAlwaysRun in interface ITestNGMethodprotected void setAlwaysRun(boolean alwaysRun)
alwaysRun - public java.lang.Class<?> getRealClass()
getRealClass in interface ITestNGMethodpublic ITestClass getTestClass()
getTestClass in interface ITestNGMethodpublic void setTestClass(ITestClass tc)
setTestClass in interface ITestNGMethodtc - The test class having this method.public int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparableo -
public java.lang.reflect.Method getMethod()
getMethod in interface ITestNGMethodpublic java.lang.String getMethodName()
getMethodName in interface ITestNGMethodpublic java.lang.Object[] getInstances()
getInstances in interface ITestNGMethodpublic long[] getInstanceHashCodes()
getInstanceHashCodes in interface ITestNGMethodpublic java.lang.String[] getGroups()
getGroups in interface ITestNGMethodpublic java.lang.String[] getGroupsDependedUpon()
getGroupsDependedUpon in interface ITestNGMethodpublic java.lang.String[] getMethodsDependedUpon()
getMethodsDependedUpon in interface ITestNGMethodpublic boolean isTest()
isTest in interface ITestNGMethodpublic boolean isBeforeSuiteConfiguration()
isBeforeSuiteConfiguration in interface ITestNGMethodpublic boolean isAfterSuiteConfiguration()
isAfterSuiteConfiguration in interface ITestNGMethodpublic boolean isBeforeTestConfiguration()
isBeforeTestConfiguration in interface ITestNGMethodpublic boolean isAfterTestConfiguration()
isAfterTestConfiguration in interface ITestNGMethodpublic boolean isBeforeGroupsConfiguration()
isBeforeGroupsConfiguration in interface ITestNGMethodpublic boolean isAfterGroupsConfiguration()
isAfterGroupsConfiguration in interface ITestNGMethodpublic boolean isBeforeClassConfiguration()
isBeforeClassConfiguration in interface ITestNGMethodpublic boolean isAfterClassConfiguration()
isAfterClassConfiguration in interface ITestNGMethodpublic boolean isBeforeMethodConfiguration()
isBeforeMethodConfiguration in interface ITestNGMethodpublic boolean isAfterMethodConfiguration()
isAfterMethodConfiguration in interface ITestNGMethodpublic long getTimeOut()
getTimeOut in interface ITestNGMethodpublic int getInvocationCount()
getInvocationCount in interface ITestNGMethodpublic void setInvocationCount(int counter)
setInvocationCount in interface ITestNGMethodpublic int getSuccessPercentage()
getSuccessPercentage in interface ITestNGMethodpublic java.lang.String getId()
getId in interface ITestNGMethodpublic void setId(java.lang.String id)
setId in interface ITestNGMethodpublic long getDate()
getDate in interface ITestNGMethodpublic void setDate(long date)
setDate in interface ITestNGMethoddate - The date to set.public boolean canRunFromClass(IClass testClass)
canRunFromClass in interface ITestNGMethodpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectprotected void initGroups(java.lang.Class<?> annotationClass)
annotationClass - protected IAnnotationFinder getAnnotationFinder()
protected IClass getIClass()
protected java.lang.String getSignature()
public java.lang.String toString()
toString in class java.lang.Object
protected java.lang.String[] getStringArray(java.lang.String[] methodArray,
java.lang.String[] classArray)
methodArray - classArray -
protected void setGroups(java.lang.String[] groups)
protected void setGroupsDependedUpon(java.lang.String[] groups)
protected void setMethodsDependedUpon(java.lang.String[] methods)
public void addMethodDependedUpon(java.lang.String method)
addMethodDependedUpon in interface ITestNGMethodpublic java.lang.String getMissingGroup()
getMissingGroup in interface ITestNGMethodpublic void setMissingGroup(java.lang.String group)
setMissingGroup in interface ITestNGMethodpublic int getThreadPoolSize()
getThreadPoolSize in interface ITestNGMethodpublic void setThreadPoolSize(int threadPoolSize)
setThreadPoolSize in interface ITestNGMethodthreadPoolSize - public void setDescription(java.lang.String description)
description - public java.lang.String getDescription()
getDescription in interface ITestNGMethodpublic java.lang.String[] getBeforeGroups()
getBeforeGroups in interface ITestNGMethodpublic java.lang.String[] getAfterGroups()
getAfterGroups in interface ITestNGMethodpublic void incrementCurrentInvocationCount()
incrementCurrentInvocationCount in interface ITestNGMethodpublic int getCurrentInvocationCount()
getCurrentInvocationCount in interface ITestNGMethodpublic void setParameterInvocationCount(int n)
setParameterInvocationCount in interface ITestNGMethodpublic int getParameterInvocationCount()
getParameterInvocationCount in interface ITestNGMethodpublic abstract ITestNGMethod clone()
clone in interface ITestNGMethodclone in class java.lang.Objectpublic IRetryAnalyzer getRetryAnalyzer()
getRetryAnalyzer in interface ITestNGMethodpublic void setRetryAnalyzer(IRetryAnalyzer retryAnalyzer)
setRetryAnalyzer in interface ITestNGMethodpublic boolean skipFailedInvocations()
skipFailedInvocations in interface ITestNGMethodpublic void setSkipFailedInvocations(boolean s)
setSkipFailedInvocations in interface ITestNGMethod
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||