Class ConfigurationGroupMethods

java.lang.Object
org.testng.internal.ConfigurationGroupMethods

public class ConfigurationGroupMethods extends Object
This class wraps access to beforeGroups and afterGroups methods, since they are passed around the various invokers and potentially modified in different threads.
Since:
5.3 (Mar 2, 2006)
  • Constructor Details

  • Method Details

    • getBeforeGroupsMethods

      public Map<String,List<ITestNGMethod>> getBeforeGroupsMethods()
    • getAfterGroupsMethods

      public Map<String,List<ITestNGMethod>> getAfterGroupsMethods()
    • isLastMethodForGroup

      public boolean isLastMethodForGroup(String group, ITestNGMethod method)
      Parameters:
      group - The group name
      method - The test method
      Returns:
      true if the passed method is the last to run for the group. This method is used to figure out when is the right time to invoke afterGroups methods.
    • getBeforeGroupMethodsForGroup

      public List<ITestNGMethod> getBeforeGroupMethodsForGroup(String group)
    • getAfterGroupMethodsForGroup

      public List<ITestNGMethod> getAfterGroupMethodsForGroup(String group)
    • removeBeforeGroups

      public void removeBeforeGroups(String[] groups)
    • removeAfterGroups

      public void removeAfterGroups(Collection<String> groups)