public class MethodGroupsHelper extends Object
Constructor and Description |
---|
MethodGroupsHelper() |
Modifier and Type | Method and Description |
---|---|
static Map<String,List<ITestNGMethod>> |
findGroupsMethods(Collection<ITestClass> classes,
boolean before)
Extracts the map of groups and their corresponding methods from the
classes . |
protected static void |
findGroupTransitiveClosure(XmlMethodSelector xms,
List<ITestNGMethod> includedMethods,
List<ITestNGMethod> allMethods,
String[] includedGroups,
Set<String> outGroups,
Set<ITestNGMethod> outMethods) |
protected static ITestNGMethod[] |
findMethodsThatBelongToGroup(ITestNGMethod[] methods,
String groupRegexp) |
protected static ITestNGMethod[] |
findMethodsThatBelongToGroup(ITestNGMethod method,
ITestNGMethod[] methods,
String groupRegexp)
Only used if a group is missing to flag an error on that method
|
public static Map<String,List<ITestNGMethod>> findGroupsMethods(Collection<ITestClass> classes, boolean before)
classes
.protected static void findGroupTransitiveClosure(XmlMethodSelector xms, List<ITestNGMethod> includedMethods, List<ITestNGMethod> allMethods, String[] includedGroups, Set<String> outGroups, Set<ITestNGMethod> outMethods)
protected static ITestNGMethod[] findMethodsThatBelongToGroup(ITestNGMethod method, ITestNGMethod[] methods, String groupRegexp)
method
- if no group is found, group regex is set as this method's missing groupmethods
- list of methods to searchgroupRegexp
- regex representing the groupprotected static ITestNGMethod[] findMethodsThatBelongToGroup(ITestNGMethod[] methods, String groupRegexp)
methods
- list of methods to searchgroupRegexp
- regex representing the groupCopyright © 2018. All rights reserved.