org.testng.internal.annotations
Class BaseBeforeAfter

java.lang.Object
  extended by org.testng.internal.annotations.BaseAnnotation
      extended by org.testng.internal.annotations.TestOrConfiguration
          extended by org.testng.internal.annotations.BaseBeforeAfter
All Implemented Interfaces:
IAnnotation, IBaseBeforeAfter, IParameterizable, ITestOrConfiguration
Direct Known Subclasses:
AfterSuiteAnnotation, BeforeSuiteAnnotation

public class BaseBeforeAfter
extends TestOrConfiguration
implements IBaseBeforeAfter


Constructor Summary
BaseBeforeAfter()
           
 
Method Summary
 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).
 java.lang.String[] getParameters()
          The list of variables used to fill the parameters of this method.
 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)
           
 void setParameters(java.lang.String[] parameters)
           
 
Methods inherited from class org.testng.internal.annotations.TestOrConfiguration
getDependsOnGroups, getDependsOnMethods, getEnabled, getGroups, setDependsOnGroups, setDependsOnMethods, setEnabled, setGroups
 
Methods inherited from class org.testng.internal.annotations.BaseAnnotation
getConstructor, getMethod, getTestClass, setConstructor, setMethod, setTestClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.testng.internal.annotations.IBaseBeforeAfter
getDependsOnGroups, getDependsOnMethods, getEnabled, getGroups
 

Constructor Detail

BaseBeforeAfter

public BaseBeforeAfter()
Method Detail

getDescription

public java.lang.String getDescription()
Description copied from interface: ITestOrConfiguration
The description for this method, which will be shown in the reports.

Specified by:
getDescription in interface IBaseBeforeAfter
Specified by:
getDescription in interface ITestOrConfiguration
Overrides:
getDescription in class TestOrConfiguration
Returns:
the description

setDescription

public void setDescription(java.lang.String description)
Overrides:
setDescription in class TestOrConfiguration
Parameters:
description - the description to set

setAlwaysRun

public void setAlwaysRun(boolean alwaysRun)

setInheritGroups

public void setInheritGroups(boolean inheritGroups)

setParameters

public void setParameters(java.lang.String[] parameters)
Overrides:
setParameters in class TestOrConfiguration

getParameters

public java.lang.String[] getParameters()
Description copied from interface: IParameterizable
The list of variables used to fill the parameters of this method. These variables must be defined in the property file.

Specified by:
getParameters in interface IParameterizable
Overrides:
getParameters in class TestOrConfiguration

getAlwaysRun

public boolean getAlwaysRun()
Description copied from interface: IBaseBeforeAfter
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.
For after methods (afterSuite, afterClass, ...): If set to true, this configuration method will be run even if one or more methods invoked previously failed or was skipped.

Specified by:
getAlwaysRun in interface IBaseBeforeAfter

getInheritGroups

public boolean getInheritGroups()
Description copied from interface: IBaseBeforeAfter
If true, this @Configuration method will belong to groups specified in the @Test annotation on the class (if any).

Specified by:
getInheritGroups in interface IBaseBeforeAfter

getAfterGroups

public java.lang.String[] getAfterGroups()

setAfterGroups

public void setAfterGroups(java.lang.String[] afterGroups)

getBeforeGroups

public java.lang.String[] getBeforeGroups()

setBeforeGroups

public void setBeforeGroups(java.lang.String[] beforeGroups)


Copyright © 2010. All Rights Reserved.