public class ConfigurationAnnotation extends TestOrConfiguration implements IConfigurationAnnotation, IBeforeSuite, IAfterSuite, IBeforeTest, IAfterTest, IBeforeGroups, IAfterGroups, IBeforeClass, IAfterClass, IBeforeMethod, IAfterMethod
| 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.
|
boolean |
getInheritGroups()
If true, this @Configuration method will belong to groups specified in the
\@Test annotation on the class (if any).
|
java.lang.String[] |
getParameters()
The list of variables used to fill the parameters of this method.
|
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) |
void |
setInheritGroups(boolean inheritGroups) |
void |
setLastTimeOnly(boolean f) |
void |
setParameters(java.lang.String[] parameters) |
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, setTimeOutsetEnabledpublic 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 void setParameters(java.lang.String[] parameters)
setParameters in class TestOrConfigurationpublic 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 java.lang.String[] getParameters()
IParameterizablegetParameters in interface IParameterizablegetParameters in class TestOrConfigurationpublic 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 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()