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, 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
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 void setParameters(java.lang.String[] parameters)
setParameters
in class TestOrConfiguration
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 java.lang.String[] getParameters()
IParameterizable
getParameters
in interface IParameterizable
getParameters
in class TestOrConfiguration
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 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()