org.testng.internal
Class ConfigurationGroupMethods
java.lang.Object
org.testng.internal.ConfigurationGroupMethods
- All Implemented Interfaces:
- java.io.Serializable
public class ConfigurationGroupMethods
- extends java.lang.Object
- implements java.io.Serializable
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)
- Author:
- Cedric Beust, Alexandru Popescu
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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)
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.
removeBeforeMethod
public void removeBeforeMethod(java.lang.String group,
ITestNGMethod method)
getBeforeGroupsMap
public java.util.Map<java.lang.String,java.util.List<ITestNGMethod>> getBeforeGroupsMap()
getAfterGroupsMap
public java.util.Map<java.lang.String,java.util.List<ITestNGMethod>> getAfterGroupsMap()
removeBeforeGroups
public void removeBeforeGroups(java.lang.String[] groups)
removeAfterGroups
public void removeAfterGroups(java.util.Collection<java.lang.String> groups)
Copyright © 2010. All Rights Reserved.