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, setTimeOut
getConstructor, getMethod, getTestClass, setConstructor, setMethod, setTestClass
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDependsOnGroups, getDependsOnMethods, getDescription, getEnabled, getGroups
getTimeOut, setDependsOnGroups, setDependsOnMethods, setDescription, setGroups, setTimeOut
setEnabled
private 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()
IConfigurationAnnotation
getBeforeTestClass
in interface IConfigurationAnnotation
public boolean getAfterTestClass()
IConfigurationAnnotation
getAfterTestClass
in interface IConfigurationAnnotation
public boolean getBeforeTestMethod()
IConfigurationAnnotation
getBeforeTestMethod
in interface IConfigurationAnnotation
public boolean getAfterTestMethod()
IConfigurationAnnotation
getAfterTestMethod
in interface IConfigurationAnnotation
public boolean getBeforeSuite()
IConfigurationAnnotation
getBeforeSuite
in interface IConfigurationAnnotation
public boolean getAfterSuite()
IConfigurationAnnotation
getAfterSuite
in interface IConfigurationAnnotation
public boolean getBeforeTest()
IConfigurationAnnotation
getBeforeTest
in interface IConfigurationAnnotation
public boolean getAfterTest()
IConfigurationAnnotation
getAfterTest
in interface IConfigurationAnnotation
public boolean getAlwaysRun()
IConfigurationAnnotation
getAlwaysRun
in interface IConfigurationAnnotation
getAlwaysRun
in interface IBaseBeforeAfter
public boolean getInheritGroups()
IConfigurationAnnotation
getInheritGroups
in interface IConfigurationAnnotation
getInheritGroups
in interface IBaseBeforeAfter
public java.lang.String[] getAfterGroups()
IConfigurationAnnotation
getAfterGroups
in interface IConfigurationAnnotation
public void setAfterGroups(java.lang.String[] afterGroups)
public java.lang.String[] getBeforeGroups()
IConfigurationAnnotation
getBeforeGroups
in interface IConfigurationAnnotation
public void setBeforeGroups(java.lang.String[] beforeGroups)
public java.lang.String[] getGroupFilters()
IBaseBeforeAfterMethod
getGroupFilters
in interface IBaseBeforeAfterMethod
void setGroupFilters(java.lang.String[] groupFilters)
public void setFakeConfiguration(boolean b)
public boolean isFakeConfiguration()
IConfigurationAnnotation
isFakeConfiguration
in interface IConfigurationAnnotation
public void setFirstTimeOnly(boolean f)
public boolean isFirstTimeOnly()
public void setLastTimeOnly(boolean f)
public boolean isLastTimeOnly()