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() |
java.lang.Class<? extends IRetryAnalyzer> |
getRetryAnalyzerClass() |
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<? extends IRetryAnalyzer> c) |
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, getPriority, getTimeOut, setDependsOnGroups, setDependsOnMethods, setDescription, setEnabled, setGroups, setPriority, setTimeOut
getConstructor, getMethod, getTestClass, setConstructor, setMethod, setTestClass
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPriority, setPriority
getDependsOnGroups, getDependsOnMethods, getDescription, getGroups, getTimeOut, setDependsOnGroups, setDependsOnMethods, setDescription, setGroups, setTimeOut
getEnabled, setEnabled
public java.lang.Class<?>[] getExpectedExceptions()
getExpectedExceptions
in interface ITestAnnotation
public void setExpectedExceptions(java.lang.Class<?>[] expectedExceptions)
setExpectedExceptions
in interface ITestAnnotation
expectedExceptions
- the expectedExceptions to setpublic java.lang.String getExpectedExceptionsMessageRegExp()
getExpectedExceptionsMessageRegExp
in interface ITestAnnotation
public void setExpectedExceptionsMessageRegExp(java.lang.String expectedExceptionsMessageRegExp)
setExpectedExceptionsMessageRegExp
in interface ITestAnnotation
public void setAlwaysRun(boolean alwaysRun)
setAlwaysRun
in interface ITestAnnotation
public void setDataProvider(java.lang.String dataProvider)
setDataProvider
in interface ITestAnnotation
setDataProvider
in interface IDataProvidable
public java.lang.Class<?> getDataProviderClass()
getDataProviderClass
in interface ITestAnnotation
getDataProviderClass
in interface IDataProvidable
public void setDataProviderClass(java.lang.Class<?> dataProviderClass)
setDataProviderClass
in interface ITestAnnotation
setDataProviderClass
in interface IDataProvidable
public void setInvocationCount(int invocationCount)
setInvocationCount
in interface ITestAnnotation
public void setSuccessPercentage(int successPercentage)
setSuccessPercentage
in interface ITestAnnotation
public int getInvocationCount()
ITestAnnotation
getInvocationCount
in interface ITestAnnotation
public long invocationTimeOut()
invocationTimeOut
in interface ITestAnnotation
public void setInvocationTimeOut(long timeOut)
setInvocationTimeOut
in interface ITestAnnotation
public int getSuccessPercentage()
ITestAnnotation
getSuccessPercentage
in interface ITestAnnotation
public java.lang.String getDataProvider()
getDataProvider
in interface ITestAnnotation
getDataProvider
in interface IDataProvidable
public boolean getAlwaysRun()
ITestAnnotation
getAlwaysRun
in interface ITestAnnotation
public int getThreadPoolSize()
ITestAnnotation
getThreadPoolSize
in interface ITestAnnotation
public void setThreadPoolSize(int threadPoolSize)
setThreadPoolSize
in interface ITestAnnotation
public java.lang.String getSuiteName()
getSuiteName
in interface ITestAnnotation
public void setSuiteName(java.lang.String xmlSuite)
setSuiteName
in interface ITestAnnotation
public java.lang.String getTestName()
getTestName
in interface ITestAnnotation
public void setTestName(java.lang.String xmlTest)
setTestName
in interface ITestAnnotation
public boolean getSingleThreaded()
getSingleThreaded
in interface ITestAnnotation
public void setSingleThreaded(boolean singleThreaded)
setSingleThreaded
in interface ITestAnnotation
public IRetryAnalyzer getRetryAnalyzer()
getRetryAnalyzer
in interface ITestAnnotation
public void setRetryAnalyzer(java.lang.Class<? extends IRetryAnalyzer> c)
setRetryAnalyzer
in interface ITestAnnotation
public java.lang.Class<? extends IRetryAnalyzer> getRetryAnalyzerClass()
getRetryAnalyzerClass
in interface ITestAnnotation
public void setSkipFailedInvocations(boolean skip)
setSkipFailedInvocations
in interface ITestAnnotation
public boolean skipFailedInvocations()
skipFailedInvocations
in interface ITestAnnotation
public void setIgnoreMissingDependencies(boolean ignore)
setIgnoreMissingDependencies
in interface ITestAnnotation
public boolean ignoreMissingDependencies()
ignoreMissingDependencies
in interface ITestAnnotation