public class ClonedMethod extends java.lang.Object implements ITestNGMethod
| Constructor and Description |
|---|
ClonedMethod(ITestNGMethod method,
java.lang.reflect.Method javaMethod) |
| Modifier and Type | Method and Description |
|---|---|
void |
addFailedInvocationNumber(int number)
The list of invocation numbers that failed, which is only applicable for
methods that have a data provider.
|
void |
addMethodDependedUpon(java.lang.String methodName) |
boolean |
canRunFromClass(IClass testClass)
Returns if this ITestNGMethod can be invoked from within IClass.
|
ClonedMethod |
clone() |
java.util.Map<java.lang.String,java.lang.String> |
findMethodParameters(XmlTest test) |
java.lang.String[] |
getAfterGroups() |
java.lang.String[] |
getBeforeGroups()
Before and After groups
|
ConstructorOrMethod |
getConstructorOrMethod() |
int |
getCurrentInvocationCount() |
long |
getDate() |
java.lang.String |
getDescription() |
boolean |
getEnabled() |
java.util.List<java.lang.Integer> |
getFailedInvocationNumbers() |
java.lang.String[] |
getGroups() |
java.lang.String[] |
getGroupsDependedUpon() |
java.lang.String |
getId() |
java.lang.Object |
getInstance() |
long[] |
getInstanceHashCodes()
Needed for serialization.
|
java.lang.Object[] |
getInstances() |
int |
getInvocationCount() |
java.util.List<java.lang.Integer> |
getInvocationNumbers()
Which invocation numbers of this method should be used (only applicable
if it uses a data provider).
|
long |
getInvocationTimeOut()
The time under which all invocationCount methods need to complete by.
|
java.lang.reflect.Method |
getMethod() |
java.lang.String |
getMethodName()
Returns the method name.
|
java.lang.String[] |
getMethodsDependedUpon() |
java.lang.String |
getMissingGroup()
If a group was not found.
|
int |
getParameterInvocationCount() |
int |
getPriority()
The scheduling priority.
|
java.lang.String |
getQualifiedName()
getRealClass().getName() + "." + getMethodName()
|
java.lang.Class |
getRealClass() |
IRetryAnalyzer |
getRetryAnalyzer() |
int |
getSuccessPercentage() |
ITestClass |
getTestClass() |
int |
getThreadPoolSize() |
long |
getTimeOut() |
int |
getTotalInvocationCount() |
XmlTest |
getXmlTest() |
boolean |
hasMoreInvocation() |
boolean |
ignoreMissingDependencies() |
void |
incrementCurrentInvocationCount() |
boolean |
isAfterClassConfiguration() |
boolean |
isAfterGroupsConfiguration() |
boolean |
isAfterMethodConfiguration() |
boolean |
isAfterSuiteConfiguration() |
boolean |
isAfterTestConfiguration() |
boolean |
isAlwaysRun() |
boolean |
isBeforeClassConfiguration() |
boolean |
isBeforeGroupsConfiguration() |
boolean |
isBeforeMethodConfiguration() |
boolean |
isBeforeSuiteConfiguration() |
boolean |
isBeforeTestConfiguration() |
boolean |
isTest() |
void |
setDate(long date) |
void |
setDescription(java.lang.String description) |
void |
setId(java.lang.String id) |
void |
setIgnoreMissingDependencies(boolean ignore) |
void |
setInvocationCount(int count) |
void |
setInvocationNumbers(java.util.List<java.lang.Integer> count) |
void |
setMissingGroup(java.lang.String group) |
void |
setMoreInvocationChecker(java.util.concurrent.Callable<java.lang.Boolean> moreInvocationChecker) |
void |
setParameterInvocationCount(int n) |
void |
setPriority(int priority) |
void |
setRetryAnalyzer(IRetryAnalyzer retryAnalyzer) |
void |
setSkipFailedInvocations(boolean skip) |
void |
setTestClass(ITestClass cls)
Sets the test class having this method.
|
void |
setThreadPoolSize(int threadPoolSize) |
void |
setTimeOut(long timeOut) |
boolean |
skipFailedInvocations() |
java.lang.String |
toString() |
public ClonedMethod(ITestNGMethod method, java.lang.reflect.Method javaMethod)
public void addMethodDependedUpon(java.lang.String methodName)
addMethodDependedUpon in interface ITestNGMethodpublic boolean canRunFromClass(IClass testClass)
ITestNGMethodcanRunFromClass in interface ITestNGMethodpublic java.lang.String[] getAfterGroups()
getAfterGroups in interface ITestNGMethodpublic java.lang.String[] getBeforeGroups()
ITestNGMethodgetBeforeGroups in interface ITestNGMethodpublic int getCurrentInvocationCount()
getCurrentInvocationCount in interface ITestNGMethodpublic long getDate()
getDate in interface ITestNGMethodpublic java.lang.String getDescription()
getDescription in interface ITestNGMethodpublic void setDescription(java.lang.String description)
setDescription in interface ITestNGMethodpublic boolean getEnabled()
getEnabled in interface ITestNGMethodpublic java.lang.String[] getGroups()
getGroups in interface ITestNGMethodpublic java.lang.String[] getGroupsDependedUpon()
getGroupsDependedUpon in interface ITestNGMethodpublic java.lang.String getId()
getId in interface ITestNGMethodpublic long[] getInstanceHashCodes()
ITestNGMethodgetInstanceHashCodes in interface ITestNGMethodpublic java.lang.Object[] getInstances()
getInstances in interface ITestNGMethodpublic java.lang.Object getInstance()
getInstance in interface ITestNGMethodpublic int getInvocationCount()
getInvocationCount in interface ITestNGMethodpublic int getTotalInvocationCount()
getTotalInvocationCount in interface ITestNGMethodpublic long getInvocationTimeOut()
ITestNGMethodgetInvocationTimeOut in interface ITestNGMethodpublic java.lang.reflect.Method getMethod()
getMethod in interface ITestNGMethodpublic java.lang.String getMethodName()
ITestNGMethodgetMethodName in interface ITestNGMethodpublic java.lang.String[] getMethodsDependedUpon()
getMethodsDependedUpon in interface ITestNGMethodpublic java.lang.String getMissingGroup()
ITestNGMethodgetMissingGroup in interface ITestNGMethodpublic int getParameterInvocationCount()
getParameterInvocationCount in interface ITestNGMethodpublic void setMoreInvocationChecker(java.util.concurrent.Callable<java.lang.Boolean> moreInvocationChecker)
setMoreInvocationChecker in interface ITestNGMethodpublic boolean hasMoreInvocation()
hasMoreInvocation in interface ITestNGMethodpublic java.lang.Class getRealClass()
getRealClass in interface ITestNGMethodpublic IRetryAnalyzer getRetryAnalyzer()
getRetryAnalyzer in interface ITestNGMethodpublic int getSuccessPercentage()
getSuccessPercentage in interface ITestNGMethodpublic ITestClass getTestClass()
getTestClass in interface ITestNGMethodpublic int getThreadPoolSize()
getThreadPoolSize in interface ITestNGMethodpublic long getTimeOut()
getTimeOut in interface ITestNGMethodpublic void setTimeOut(long timeOut)
setTimeOut in interface ITestNGMethodpublic boolean ignoreMissingDependencies()
ignoreMissingDependencies in interface ITestNGMethodpublic void incrementCurrentInvocationCount()
incrementCurrentInvocationCount in interface ITestNGMethodpublic boolean isAfterClassConfiguration()
isAfterClassConfiguration in interface ITestNGMethodpublic boolean isAfterGroupsConfiguration()
isAfterGroupsConfiguration in interface ITestNGMethodpublic boolean isAfterMethodConfiguration()
isAfterMethodConfiguration in interface ITestNGMethodpublic boolean isAfterSuiteConfiguration()
isAfterSuiteConfiguration in interface ITestNGMethodpublic boolean isAfterTestConfiguration()
isAfterTestConfiguration in interface ITestNGMethodpublic boolean isAlwaysRun()
isAlwaysRun in interface ITestNGMethodpublic boolean isBeforeClassConfiguration()
isBeforeClassConfiguration in interface ITestNGMethodpublic boolean isBeforeGroupsConfiguration()
isBeforeGroupsConfiguration in interface ITestNGMethodpublic boolean isBeforeMethodConfiguration()
isBeforeMethodConfiguration in interface ITestNGMethodpublic boolean isBeforeSuiteConfiguration()
isBeforeSuiteConfiguration in interface ITestNGMethodpublic boolean isBeforeTestConfiguration()
isBeforeTestConfiguration in interface ITestNGMethodpublic boolean isTest()
isTest in interface ITestNGMethodpublic void setDate(long date)
setDate in interface ITestNGMethodpublic void setId(java.lang.String id)
setId in interface ITestNGMethodpublic void setIgnoreMissingDependencies(boolean ignore)
setIgnoreMissingDependencies in interface ITestNGMethodpublic void setInvocationCount(int count)
setInvocationCount in interface ITestNGMethodpublic void setMissingGroup(java.lang.String group)
setMissingGroup in interface ITestNGMethodpublic void setParameterInvocationCount(int n)
setParameterInvocationCount in interface ITestNGMethodpublic void setRetryAnalyzer(IRetryAnalyzer retryAnalyzer)
setRetryAnalyzer in interface ITestNGMethodpublic void setSkipFailedInvocations(boolean skip)
setSkipFailedInvocations in interface ITestNGMethodpublic void setTestClass(ITestClass cls)
ITestNGMethodsetTestClass in interface ITestNGMethodcls - The test class having this method.public void setThreadPoolSize(int threadPoolSize)
setThreadPoolSize in interface ITestNGMethodpublic boolean skipFailedInvocations()
skipFailedInvocations in interface ITestNGMethodpublic ClonedMethod clone()
clone in interface ITestNGMethodclone in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.util.List<java.lang.Integer> getInvocationNumbers()
ITestNGMethodgetInvocationNumbers in interface ITestNGMethodpublic void setInvocationNumbers(java.util.List<java.lang.Integer> count)
setInvocationNumbers in interface ITestNGMethodpublic java.util.List<java.lang.Integer> getFailedInvocationNumbers()
getFailedInvocationNumbers in interface ITestNGMethodpublic void addFailedInvocationNumber(int number)
ITestNGMethodaddFailedInvocationNumber in interface ITestNGMethodpublic int getPriority()
ITestNGMethodgetPriority in interface ITestNGMethodpublic void setPriority(int priority)
setPriority in interface ITestNGMethodpublic XmlTest getXmlTest()
getXmlTest in interface ITestNGMethodpublic ConstructorOrMethod getConstructorOrMethod()
getConstructorOrMethod in interface ITestNGMethodpublic java.util.Map<java.lang.String,java.lang.String> findMethodParameters(XmlTest test)
findMethodParameters in interface ITestNGMethodpublic java.lang.String getQualifiedName()
ITestNGMethodgetQualifiedName in interface ITestNGMethod