Class BaseBeforeAfter

All Implemented Interfaces:
IAnnotation, IParameterizable, ITestOrConfiguration, IBaseBeforeAfter

public class BaseBeforeAfter extends TestOrConfiguration implements IBaseBeforeAfter
  • Field Details

    • m_alwaysRun

      private boolean m_alwaysRun
    • m_inheritGroups

      private boolean m_inheritGroups
    • m_beforeGroups

      private String[] m_beforeGroups
    • m_afterGroups

      private String[] m_afterGroups
    • m_description

      private String m_description
  • Constructor Details

    • BaseBeforeAfter

      public BaseBeforeAfter()
  • Method Details

    • getDescription

      public String getDescription()
      Description copied from interface: IBaseBeforeAfter
      The description for this method. The string used will appear in the HTML report and also on standard output if verbose > 2.
      Specified by:
      getDescription in interface IBaseBeforeAfter
      Specified by:
      getDescription in interface ITestOrConfiguration
      Overrides:
      getDescription in class TestOrConfiguration
      Returns:
      the description
    • setDescription

      public void setDescription(String description)
      Specified by:
      setDescription in interface ITestOrConfiguration
      Overrides:
      setDescription in class TestOrConfiguration
      Parameters:
      description - the description to set
    • setAlwaysRun

      public void setAlwaysRun(boolean alwaysRun)
    • setInheritGroups

      public void setInheritGroups(boolean inheritGroups)
    • 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()
      Specified by:
      getInheritGroups in interface IBaseBeforeAfter
      Returns:
      true if this @Configuration method will belong to groups specified in the @Test annotation on the class (if any).
    • getAfterGroups

      public String[] getAfterGroups()
    • setAfterGroups

      public void setAfterGroups(String[] afterGroups)
    • getBeforeGroups

      public String[] getBeforeGroups()
    • setBeforeGroups

      public void setBeforeGroups(String[] beforeGroups)