|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.testng.junit.JUnitUtils.JUnitTestMethod
public static class JUnitUtils.JUnitTestMethod
An ITestNMethod
implementation for test methods in JUnit.
Constructor Summary | |
---|---|
JUnitUtils.JUnitTestMethod(junit.framework.Test test,
JUnitUtils.JUnitTestClass testClass)
|
Method Summary | |
---|---|
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. |
ITestNGMethod |
clone()
|
int |
compareTo(java.lang.Object o)
|
java.lang.String[] |
getAfterGroups()
|
java.lang.String[] |
getBeforeGroups()
Before and After groups |
org.testng.internal.ConstructorOrMethod |
getConstructorOrMethod()
|
int |
getCurrentInvocationCount()
|
long |
getDate()
|
java.lang.String |
getDescription()
|
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.Class |
getRealClass()
|
IRetryAnalyzer |
getRetryAnalyzer()
|
int |
getSuccessPercentage()
|
ITestClass |
getTestClass()
|
int |
getThreadPoolSize()
|
long |
getTimeOut()
|
XmlTest |
getXmlTest()
|
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 |
isFirstTimeOnly()
|
boolean |
isLastTimeOnly()
|
boolean |
isTest()
|
void |
setDate(long date)
|
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 |
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()
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JUnitUtils.JUnitTestMethod(junit.framework.Test test, JUnitUtils.JUnitTestClass testClass)
Method Detail |
---|
public long getDate()
getDate
in interface ITestNGMethod
ITestNGMethod.getDate()
public java.lang.String getDescription()
getDescription
in interface ITestNGMethod
ITestNGMethod.getDescription()
public java.lang.String getId()
getId
in interface ITestNGMethod
ITestNGMethod.getId()
public long[] getInstanceHashCodes()
ITestNGMethod
getInstanceHashCodes
in interface ITestNGMethod
ITestNGMethod.getInstanceHashCodes()
public java.lang.Object[] getInstances()
getInstances
in interface ITestNGMethod
ITestNGMethod.getInstances()
public java.lang.Object getInstance()
getInstance
in interface ITestNGMethod
public java.lang.reflect.Method getMethod()
getMethod
in interface ITestNGMethod
ITestNGMethod.getMethod()
public java.lang.String getMethodName()
ITestNGMethod
getMethodName
in interface ITestNGMethod
ITestNGMethod.getMethodName()
public java.lang.Class getRealClass()
getRealClass
in interface ITestNGMethod
ITestNGMethod.getRealClass()
public void setDate(long date)
setDate
in interface ITestNGMethod
ITestNGMethod.setDate(long)
public void setId(java.lang.String id)
setId
in interface ITestNGMethod
org.testng.ITestNGMethod#setId(long)
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
public boolean isTest()
isTest
in interface ITestNGMethod
ITestNGMethod.isTest()
public boolean canRunFromClass(IClass testClass)
ITestNGMethod
canRunFromClass
in interface ITestNGMethod
ITestNGMethod.canRunFromClass(org.testng.IClass)
public void setTestClass(ITestClass cls)
ITestNGMethod
setTestClass
in interface ITestNGMethod
cls
- The test class having this method.ITestNGMethod.setTestClass(org.testng.ITestClass)
public ITestClass getTestClass()
getTestClass
in interface ITestNGMethod
ITestNGMethod.getTestClass()
public void addMethodDependedUpon(java.lang.String methodName)
addMethodDependedUpon
in interface ITestNGMethod
ITestNGMethod.addMethodDependedUpon(java.lang.String)
public void setMissingGroup(java.lang.String group)
setMissingGroup
in interface ITestNGMethod
ITestNGMethod.setMissingGroup(java.lang.String)
public java.lang.String[] getAfterGroups()
getAfterGroups
in interface ITestNGMethod
ITestNGMethod.getAfterGroups()
public java.lang.String[] getBeforeGroups()
ITestNGMethod
getBeforeGroups
in interface ITestNGMethod
ITestNGMethod.getBeforeGroups()
public java.lang.String[] getGroups()
getGroups
in interface ITestNGMethod
ITestNGMethod.getGroups()
public java.lang.String[] getGroupsDependedUpon()
getGroupsDependedUpon
in interface ITestNGMethod
ITestNGMethod.getGroupsDependedUpon()
public int getInvocationCount()
getInvocationCount
in interface ITestNGMethod
ITestNGMethod.getInvocationCount()
public java.lang.String[] getMethodsDependedUpon()
getMethodsDependedUpon
in interface ITestNGMethod
ITestNGMethod.getMethodsDependedUpon()
public java.lang.String getMissingGroup()
ITestNGMethod
getMissingGroup
in interface ITestNGMethod
ITestNGMethod.getMissingGroup()
public int getSuccessPercentage()
getSuccessPercentage
in interface ITestNGMethod
ITestNGMethod.getSuccessPercentage()
public int getThreadPoolSize()
getThreadPoolSize
in interface ITestNGMethod
ITestNGMethod.getThreadPoolSize()
public long getTimeOut()
getTimeOut
in interface ITestNGMethod
ITestNGMethod.getTimeOut()
public void setTimeOut(long timeOut)
setTimeOut
in interface ITestNGMethod
public boolean isAfterClassConfiguration()
isAfterClassConfiguration
in interface ITestNGMethod
ITestNGMethod.isAfterClassConfiguration()
public boolean isAfterGroupsConfiguration()
isAfterGroupsConfiguration
in interface ITestNGMethod
ITestNGMethod.isAfterGroupsConfiguration()
public boolean isAfterMethodConfiguration()
isAfterMethodConfiguration
in interface ITestNGMethod
ITestNGMethod.isAfterMethodConfiguration()
public boolean isAfterSuiteConfiguration()
isAfterSuiteConfiguration
in interface ITestNGMethod
ITestNGMethod.isAfterSuiteConfiguration()
public boolean isAfterTestConfiguration()
isAfterTestConfiguration
in interface ITestNGMethod
ITestNGMethod.isAfterTestConfiguration()
public boolean isAlwaysRun()
isAlwaysRun
in interface ITestNGMethod
ITestNGMethod.isAlwaysRun()
public boolean isBeforeClassConfiguration()
isBeforeClassConfiguration
in interface ITestNGMethod
ITestNGMethod.isBeforeClassConfiguration()
public boolean isBeforeGroupsConfiguration()
isBeforeGroupsConfiguration
in interface ITestNGMethod
ITestNGMethod.isBeforeGroupsConfiguration()
public boolean isBeforeMethodConfiguration()
isBeforeMethodConfiguration
in interface ITestNGMethod
ITestNGMethod.isBeforeMethodConfiguration()
public boolean isBeforeSuiteConfiguration()
isBeforeSuiteConfiguration
in interface ITestNGMethod
ITestNGMethod.isBeforeSuiteConfiguration()
public boolean isBeforeTestConfiguration()
isBeforeTestConfiguration
in interface ITestNGMethod
ITestNGMethod.isBeforeTestConfiguration()
public int getCurrentInvocationCount()
getCurrentInvocationCount
in interface ITestNGMethod
public void incrementCurrentInvocationCount()
incrementCurrentInvocationCount
in interface ITestNGMethod
public void setParameterInvocationCount(int n)
setParameterInvocationCount
in interface ITestNGMethod
public int getParameterInvocationCount()
getParameterInvocationCount
in interface ITestNGMethod
public java.lang.String toString()
toString
in class java.lang.Object
public ITestNGMethod clone()
clone
in interface ITestNGMethod
clone
in class java.lang.Object
public void setInvocationCount(int count)
setInvocationCount
in interface ITestNGMethod
ITestNGMethod.setInvocationCount(int)
public void setThreadPoolSize(int threadPoolSize)
setThreadPoolSize
in interface ITestNGMethod
ITestNGMethod.setThreadPoolSize(int)
public IRetryAnalyzer getRetryAnalyzer()
getRetryAnalyzer
in interface ITestNGMethod
public void setRetryAnalyzer(IRetryAnalyzer retryAnalyzer)
setRetryAnalyzer
in interface ITestNGMethod
public void setSkipFailedInvocations(boolean skip)
setSkipFailedInvocations
in interface ITestNGMethod
public boolean skipFailedInvocations()
skipFailedInvocations
in interface ITestNGMethod
public void setIgnoreMissingDependencies(boolean ignore)
setIgnoreMissingDependencies
in interface ITestNGMethod
public boolean ignoreMissingDependencies()
ignoreMissingDependencies
in interface ITestNGMethod
public boolean isFirstTimeOnly()
public boolean isLastTimeOnly()
public long getInvocationTimeOut()
ITestNGMethod
getInvocationTimeOut
in interface ITestNGMethod
public java.util.List<java.lang.Integer> getInvocationNumbers()
ITestNGMethod
getInvocationNumbers
in interface ITestNGMethod
public void setInvocationNumbers(java.util.List<java.lang.Integer> count)
setInvocationNumbers
in interface ITestNGMethod
public java.util.List<java.lang.Integer> getFailedInvocationNumbers()
getFailedInvocationNumbers
in interface ITestNGMethod
public void addFailedInvocationNumber(int number)
ITestNGMethod
addFailedInvocationNumber
in interface ITestNGMethod
public int getPriority()
ITestNGMethod
getPriority
in interface ITestNGMethod
public void setPriority(int priority)
setPriority
in interface ITestNGMethod
public XmlTest getXmlTest()
getXmlTest
in interface ITestNGMethod
public org.testng.internal.ConstructorOrMethod getConstructorOrMethod()
getConstructorOrMethod
in interface ITestNGMethod
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |