Package org.testng.internal
Class ConfigurationGroupMethods
java.lang.Object
org.testng.internal.ConfigurationGroupMethods
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
ConstructorsConstructorDescriptionConfigurationGroupMethods
(IContainer<ITestNGMethod> container, Map<String, List<ITestNGMethod>> beforeGroupsMethods, Map<String, List<ITestNGMethod>> afterGroupsMethods) -
Method Summary
Modifier and TypeMethodDescriptionboolean
isLastMethodForGroup
(String group, ITestNGMethod method) void
removeAfterGroups
(Collection<String> groups) void
removeBeforeGroups
(String[] groups)
-
Constructor Details
-
ConfigurationGroupMethods
public ConfigurationGroupMethods(IContainer<ITestNGMethod> container, Map<String, List<ITestNGMethod>> beforeGroupsMethods, Map<String, List<ITestNGMethod>> afterGroupsMethods)
-
-
Method Details
-
getBeforeGroupsMethods
-
getAfterGroupsMethods
-
isLastMethodForGroup
- Parameters:
group
- The group namemethod
- 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
-
getAfterGroupMethodsForGroup
-
removeBeforeGroups
-
removeAfterGroups
-