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