Package org.testng.internal
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 Summary
Constructors Constructor Description ConfigurationGroupMethods(ITestNGMethod[] allMethods, Map<String,List<ITestNGMethod>> beforeGroupsMethods, Map<String,List<ITestNGMethod>> afterGroupsMethods)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ITestNGMethod>
getAfterGroupMethodsForGroup(String group)
Map<String,List<ITestNGMethod>>
getAfterGroupsMethods()
ITestNGMethod[]
getAllTestMethods()
List<ITestNGMethod>
getBeforeGroupMethodsForGroup(String group)
Map<String,List<ITestNGMethod>>
getBeforeGroupsMethods()
boolean
isLastMethodForGroup(String group, ITestNGMethod method)
void
removeAfterGroups(Collection<String> groups)
void
removeBeforeGroups(String[] groups)
void
removeBeforeMethod(String group, ITestNGMethod method)
-
-
-
Constructor Detail
-
ConfigurationGroupMethods
public ConfigurationGroupMethods(ITestNGMethod[] allMethods, Map<String,List<ITestNGMethod>> beforeGroupsMethods, Map<String,List<ITestNGMethod>> afterGroupsMethods)
-
-
Method Detail
-
getAllTestMethods
public ITestNGMethod[] getAllTestMethods()
-
getBeforeGroupsMethods
public Map<String,List<ITestNGMethod>> getBeforeGroupsMethods()
-
getAfterGroupsMethods
public Map<String,List<ITestNGMethod>> getAfterGroupsMethods()
-
isLastMethodForGroup
public boolean isLastMethodForGroup(String group, ITestNGMethod 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.
-
removeBeforeMethod
public void removeBeforeMethod(String group, ITestNGMethod method)
-
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)
-
-