public class TestAnnotation extends TestOrConfiguration implements ITestAnnotation
| Modifier and Type | Field and Description |
|---|---|
private boolean |
m_alwaysRun |
private CustomAttribute[] |
m_attributes |
private java.lang.String |
m_dataProvider |
private java.lang.Class<?> |
m_dataProviderClass |
private java.lang.Class<?>[] |
m_expectedExceptions |
private java.lang.String |
m_expectedExceptionsMessageRegExp |
private boolean |
m_ignoreMissingDependencies |
private int |
m_invocationCount |
private long |
m_invocationTimeOut |
private IRetryAnalyzer |
m_retryAnalyzer |
private java.lang.Class<? extends IRetryAnalyzer> |
m_retryAnalyzerClass |
private boolean |
m_singleThreaded |
private boolean |
m_skipFailedInvocations |
private int |
m_successPercentage |
private java.lang.String |
m_suiteName |
private java.lang.String |
m_testName |
private int |
m_threadPoolSize |
| 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.
|
CustomAttribute[] |
getAttributes() |
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() |
private static boolean |
isRetryAnalyzerNotTestNGInjected(java.lang.Class<? extends IRetryAnalyzer> c) |
void |
setAlwaysRun(boolean alwaysRun) |
void |
setAttributes(CustomAttribute[] attributes) |
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, 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, setEnabledprivate long m_invocationTimeOut
private int m_invocationCount
private int m_threadPoolSize
private int m_successPercentage
private java.lang.String m_dataProvider
private boolean m_alwaysRun
private java.lang.Class<?>[] m_expectedExceptions
private java.lang.String m_expectedExceptionsMessageRegExp
private java.lang.String m_suiteName
private java.lang.String m_testName
private boolean m_singleThreaded
private java.lang.Class<?> m_dataProviderClass
private IRetryAnalyzer m_retryAnalyzer
private java.lang.Class<? extends IRetryAnalyzer> m_retryAnalyzerClass
private boolean m_skipFailedInvocations
private boolean m_ignoreMissingDependencies
private CustomAttribute[] m_attributes
public 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 IRetryAnalyzer getRetryAnalyzer()
getRetryAnalyzer in interface ITestAnnotationpublic void setRetryAnalyzer(java.lang.Class<? extends IRetryAnalyzer> c)
setRetryAnalyzer in interface ITestAnnotationpublic java.lang.Class<? extends IRetryAnalyzer> getRetryAnalyzerClass()
getRetryAnalyzerClass 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 ITestAnnotationpublic CustomAttribute[] getAttributes()
getAttributes in interface ITestAnnotationpublic void setAttributes(CustomAttribute[] attributes)
setAttributes in interface ITestAnnotationprivate static boolean isRetryAnalyzerNotTestNGInjected(java.lang.Class<? extends IRetryAnalyzer> c)