public class BaseBeforeAfter extends TestOrConfiguration implements IBaseBeforeAfter
Constructor and Description |
---|
BaseBeforeAfter() |
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getAfterGroups() |
boolean |
getAlwaysRun()
For before methods (beforeSuite, beforeTest, beforeTestClass and beforeTestMethod, but not
beforeGroups): If set to true, this configuration method will be run regardless of what groups
it belongs to.
|
java.lang.String[] |
getBeforeGroups() |
java.lang.String |
getDescription()
The description for this method, which will be shown in the reports.
|
boolean |
getInheritGroups()
If true, this @Configuration method will belong to groups specified in the @Test
annotation on the class (if any).
|
void |
setAfterGroups(java.lang.String[] afterGroups) |
void |
setAlwaysRun(boolean alwaysRun) |
void |
setBeforeGroups(java.lang.String[] beforeGroups) |
void |
setDescription(java.lang.String description) |
void |
setInheritGroups(boolean inheritGroups) |
getDependsOnGroups, getDependsOnMethods, getEnabled, getGroups, getPriority, getTimeOut, setDependsOnGroups, setDependsOnMethods, setEnabled, setGroups, setPriority, setTimeOut
getConstructor, getMethod, getTestClass, setConstructor, setMethod, setTestClass
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDependsOnGroups, getDependsOnMethods, getEnabled, getGroups
getTimeOut, setDependsOnGroups, setDependsOnMethods, setGroups, setTimeOut
setEnabled
public java.lang.String getDescription()
ITestOrConfiguration
getDescription
in interface ITestOrConfiguration
getDescription
in interface IBaseBeforeAfter
getDescription
in class TestOrConfiguration
public void setDescription(java.lang.String description)
setDescription
in interface ITestOrConfiguration
setDescription
in class TestOrConfiguration
description
- the description to setpublic void setAlwaysRun(boolean alwaysRun)
public void setInheritGroups(boolean inheritGroups)
public boolean getAlwaysRun()
IBaseBeforeAfter
getAlwaysRun
in interface IBaseBeforeAfter
public boolean getInheritGroups()
IBaseBeforeAfter
getInheritGroups
in interface IBaseBeforeAfter
public java.lang.String[] getAfterGroups()
public void setAfterGroups(java.lang.String[] afterGroups)
public java.lang.String[] getBeforeGroups()
public void setBeforeGroups(java.lang.String[] beforeGroups)