public class TestAnnotation extends TestOrConfiguration implements ITestAnnotation
| Constructor and Description |
|---|
TestAnnotation() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getAlwaysRun()
If set to true, this test method will always be run even if it depends
on a method that failed.
|
java.lang.String |
getDataProvider() |
java.lang.Class<?> |
getDataProviderClass() |
java.lang.Class<?>[] |
getExpectedExceptions() |
java.lang.String |
getExpectedExceptionsMessageRegExp() |
int |
getInvocationCount()
Returns the number of times this method should be invoked.
|
IRetryAnalyzer |
getRetryAnalyzer() |
boolean |
getSequential() |
boolean |
getSingleThreaded() |
int |
getSuccessPercentage()
The percentage of success expected from this method.
|
java.lang.String |
getSuiteName() |
java.lang.String |
getTestName() |
int |
getThreadPoolSize()
The size of the thread pool for this method.
|
boolean |
ignoreMissingDependencies() |
long |
invocationTimeOut() |
void |
setAlwaysRun(boolean alwaysRun) |
void |
setDataProvider(java.lang.String dataProvider) |
void |
setDataProviderClass(java.lang.Class<?> dataProviderClass) |
void |
setExpectedExceptions(java.lang.Class<?>[] expectedExceptions) |
void |
setExpectedExceptionsMessageRegExp(java.lang.String expectedExceptionsMessageRegExp) |
void |
setIgnoreMissingDependencies(boolean ignore) |
void |
setInvocationCount(int invocationCount) |
void |
setInvocationTimeOut(long timeOut) |
void |
setRetryAnalyzer(java.lang.Class<?> c) |
void |
setSequential(boolean sequential) |
void |
setSingleThreaded(boolean singleThreaded) |
void |
setSkipFailedInvocations(boolean skip) |
void |
setSuccessPercentage(int successPercentage) |
void |
setSuiteName(java.lang.String xmlSuite) |
void |
setTestName(java.lang.String xmlTest) |
void |
setThreadPoolSize(int threadPoolSize) |
boolean |
skipFailedInvocations() |
getDependsOnGroups, getDependsOnMethods, getDescription, getEnabled, getGroups, getParameters, getPriority, getTimeOut, setDependsOnGroups, setDependsOnMethods, setDescription, setEnabled, setGroups, setParameters, setPriority, setTimeOutgetConstructor, getMethod, getTestClass, setConstructor, setMethod, setTestClassclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPriority, setPrioritygetDependsOnGroups, getDependsOnMethods, getDescription, getGroups, getTimeOut, setDependsOnGroups, setDependsOnMethods, setDescription, setGroups, setTimeOutgetEnabled, getParameters, setEnabledpublic java.lang.Class<?>[] getExpectedExceptions()
getExpectedExceptions in interface ITestAnnotationpublic void setExpectedExceptions(java.lang.Class<?>[] expectedExceptions)
setExpectedExceptions in interface ITestAnnotationexpectedExceptions - the expectedExceptions to setpublic java.lang.String getExpectedExceptionsMessageRegExp()
getExpectedExceptionsMessageRegExp in interface ITestAnnotationpublic void setExpectedExceptionsMessageRegExp(java.lang.String expectedExceptionsMessageRegExp)
setExpectedExceptionsMessageRegExp in interface ITestAnnotationpublic void setAlwaysRun(boolean alwaysRun)
setAlwaysRun in interface ITestAnnotationpublic void setDataProvider(java.lang.String dataProvider)
setDataProvider in interface ITestAnnotationsetDataProvider in interface IDataProvidablepublic java.lang.Class<?> getDataProviderClass()
getDataProviderClass in interface ITestAnnotationgetDataProviderClass in interface IDataProvidablepublic void setDataProviderClass(java.lang.Class<?> dataProviderClass)
setDataProviderClass in interface ITestAnnotationsetDataProviderClass in interface IDataProvidablepublic void setInvocationCount(int invocationCount)
setInvocationCount in interface ITestAnnotationpublic void setSuccessPercentage(int successPercentage)
setSuccessPercentage in interface ITestAnnotationpublic int getInvocationCount()
ITestAnnotationgetInvocationCount in interface ITestAnnotationpublic long invocationTimeOut()
invocationTimeOut in interface ITestAnnotationpublic void setInvocationTimeOut(long timeOut)
setInvocationTimeOut in interface ITestAnnotationpublic int getSuccessPercentage()
ITestAnnotationgetSuccessPercentage in interface ITestAnnotationpublic java.lang.String getDataProvider()
getDataProvider in interface ITestAnnotationgetDataProvider in interface IDataProvidablepublic boolean getAlwaysRun()
ITestAnnotationgetAlwaysRun in interface ITestAnnotationpublic int getThreadPoolSize()
ITestAnnotationgetThreadPoolSize in interface ITestAnnotationpublic void setThreadPoolSize(int threadPoolSize)
setThreadPoolSize in interface ITestAnnotationpublic java.lang.String getSuiteName()
getSuiteName in interface ITestAnnotationpublic void setSuiteName(java.lang.String xmlSuite)
setSuiteName in interface ITestAnnotationpublic java.lang.String getTestName()
getTestName in interface ITestAnnotationpublic void setTestName(java.lang.String xmlTest)
setTestName in interface ITestAnnotationpublic boolean getSingleThreaded()
getSingleThreaded in interface ITestAnnotationpublic void setSingleThreaded(boolean singleThreaded)
setSingleThreaded in interface ITestAnnotationpublic boolean getSequential()
getSequential in interface ITestAnnotationpublic void setSequential(boolean sequential)
setSequential in interface ITestAnnotationpublic IRetryAnalyzer getRetryAnalyzer()
getRetryAnalyzer in interface ITestAnnotationpublic void setRetryAnalyzer(java.lang.Class<?> c)
setRetryAnalyzer in interface ITestAnnotationpublic void setSkipFailedInvocations(boolean skip)
setSkipFailedInvocations in interface ITestAnnotationpublic boolean skipFailedInvocations()
skipFailedInvocations in interface ITestAnnotationpublic void setIgnoreMissingDependencies(boolean ignore)
setIgnoreMissingDependencies in interface ITestAnnotationpublic boolean ignoreMissingDependencies()
ignoreMissingDependencies in interface ITestAnnotation