public class ConfigurationAnnotation extends TestOrConfiguration implements IConfigurationAnnotation, IBeforeSuite, IAfterSuite, IBeforeTest, IAfterTest, IBeforeGroups, IAfterGroups, IBeforeClass, IAfterClass, IBeforeMethod, IAfterMethod
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String[] |
m_afterGroups |
private boolean |
m_afterSuite |
private boolean |
m_afterTest |
private boolean |
m_afterTestClass |
private boolean |
m_afterTestMethod |
private boolean |
m_alwaysRun |
private java.lang.String[] |
m_beforeGroups |
private boolean |
m_beforeSuite |
private boolean |
m_beforeTest |
private boolean |
m_beforeTestClass |
private boolean |
m_beforeTestMethod |
private boolean |
m_firstTimeOnly |
private java.lang.String[] |
m_groupFilters |
private boolean |
m_inheritGroups |
private boolean |
m_isFakeConfiguration |
private boolean |
m_lastTimeOnly |
| Constructor and Description |
|---|
ConfigurationAnnotation() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String[] |
getAfterGroups()
The list of groups that this configuration method will run after.
|
boolean |
getAfterSuite()
If true, the annotated method will be run after all tests in this suite have run.
|
boolean |
getAfterTest()
If true, the annotated method will be run after all every test.
|
boolean |
getAfterTestClass()
If true, the annotated method will be run after all the tests in the test class have been run.
|
boolean |
getAfterTestMethod()
If true, the annotated method will be run after any test method is invoked.
|
boolean |
getAlwaysRun()
Used only for after type of configuration methods.
|
java.lang.String[] |
getBeforeGroups()
The list of groups that this configuration method will run before.
|
boolean |
getBeforeSuite()
If true, the annotated method will be run before this suite starts.
|
boolean |
getBeforeTest()
If true, the annotated method will be run before every test
|
boolean |
getBeforeTestClass()
If true, the annotated method will be run after the test class is instantiated and before the
test method is invoked.
|
boolean |
getBeforeTestMethod()
If true, the annotated method will be run before any test method is invoked.
|
java.lang.String[] |
getGroupFilters()
The list of groups the test method must belong to one of which.
|
boolean |
getInheritGroups()
If true, this @Configuration method will belong to groups specified in the \@Test annotation on
the class (if any).
|
boolean |
isFakeConfiguration()
Internal use only.
|
boolean |
isFirstTimeOnly() |
boolean |
isLastTimeOnly() |
void |
setAfterGroups(java.lang.String[] afterGroups) |
void |
setAfterSuite(boolean afterSuite) |
void |
setAfterTest(boolean afterTest) |
void |
setAfterTestClass(boolean afterTestClass) |
void |
setAfterTestMethod(boolean afterTestMethod) |
void |
setAlwaysRun(boolean alwaysRun) |
void |
setBeforeGroups(java.lang.String[] beforeGroups) |
void |
setBeforeSuite(boolean beforeSuite) |
void |
setBeforeTest(boolean beforeTest) |
void |
setBeforeTestClass(boolean beforeTestClass) |
void |
setBeforeTestMethod(boolean beforeTestMethod) |
void |
setFakeConfiguration(boolean b) |
void |
setFirstTimeOnly(boolean f) |
(package private) void |
setGroupFilters(java.lang.String[] groupFilters) |
void |
setInheritGroups(boolean inheritGroups) |
void |
setLastTimeOnly(boolean f) |
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, waitgetDependsOnGroups, getDependsOnMethods, getDescription, getEnabled, getGroupsgetTimeOut, setDependsOnGroups, setDependsOnMethods, setDescription, setGroups, setTimeOutsetEnabledprivate boolean m_beforeTestClass
private boolean m_afterTestClass
private boolean m_beforeTestMethod
private boolean m_afterTestMethod
private boolean m_beforeTest
private boolean m_afterTest
private boolean m_beforeSuite
private boolean m_afterSuite
private boolean m_alwaysRun
private boolean m_inheritGroups
private java.lang.String[] m_beforeGroups
private java.lang.String[] m_afterGroups
private java.lang.String[] m_groupFilters
private boolean m_isFakeConfiguration
private boolean m_firstTimeOnly
private boolean m_lastTimeOnly
public void setAfterSuite(boolean afterSuite)
public void setAfterTest(boolean afterTest)
public void setAfterTestClass(boolean afterTestClass)
public void setAfterTestMethod(boolean afterTestMethod)
public void setAlwaysRun(boolean alwaysRun)
public void setBeforeSuite(boolean beforeSuite)
public void setBeforeTest(boolean beforeTest)
public void setBeforeTestClass(boolean beforeTestClass)
public void setBeforeTestMethod(boolean beforeTestMethod)
public void setInheritGroups(boolean inheritGroups)
public boolean getBeforeTestClass()
IConfigurationAnnotationgetBeforeTestClass in interface IConfigurationAnnotationpublic boolean getAfterTestClass()
IConfigurationAnnotationgetAfterTestClass in interface IConfigurationAnnotationpublic boolean getBeforeTestMethod()
IConfigurationAnnotationgetBeforeTestMethod in interface IConfigurationAnnotationpublic boolean getAfterTestMethod()
IConfigurationAnnotationgetAfterTestMethod in interface IConfigurationAnnotationpublic boolean getBeforeSuite()
IConfigurationAnnotationgetBeforeSuite in interface IConfigurationAnnotationpublic boolean getAfterSuite()
IConfigurationAnnotationgetAfterSuite in interface IConfigurationAnnotationpublic boolean getBeforeTest()
IConfigurationAnnotationgetBeforeTest in interface IConfigurationAnnotationpublic boolean getAfterTest()
IConfigurationAnnotationgetAfterTest in interface IConfigurationAnnotationpublic boolean getAlwaysRun()
IConfigurationAnnotationgetAlwaysRun in interface IConfigurationAnnotationgetAlwaysRun in interface IBaseBeforeAfterpublic boolean getInheritGroups()
IConfigurationAnnotationgetInheritGroups in interface IConfigurationAnnotationgetInheritGroups in interface IBaseBeforeAfterpublic java.lang.String[] getAfterGroups()
IConfigurationAnnotationgetAfterGroups in interface IConfigurationAnnotationpublic void setAfterGroups(java.lang.String[] afterGroups)
public java.lang.String[] getBeforeGroups()
IConfigurationAnnotationgetBeforeGroups in interface IConfigurationAnnotationpublic void setBeforeGroups(java.lang.String[] beforeGroups)
public java.lang.String[] getGroupFilters()
IBaseBeforeAfterMethodgetGroupFilters in interface IBaseBeforeAfterMethodvoid setGroupFilters(java.lang.String[] groupFilters)
public void setFakeConfiguration(boolean b)
public boolean isFakeConfiguration()
IConfigurationAnnotationisFakeConfiguration in interface IConfigurationAnnotationpublic void setFirstTimeOnly(boolean f)
public boolean isFirstTimeOnly()
public void setLastTimeOnly(boolean f)
public boolean isLastTimeOnly()