public class MethodGroupsHelper
extends java.lang.Object
Constructor and Description |
---|
MethodGroupsHelper() |
Modifier and Type | Method and Description |
---|---|
static java.util.Map<java.lang.String,java.util.List<ITestNGMethod>> |
findGroupsMethods(java.util.Collection<ITestClass> classes,
boolean before)
Extracts the map of groups and their corresponding methods from the
classes . |
protected static void |
findGroupTransitiveClosure(java.util.List<ITestNGMethod> includedMethods,
java.util.List<ITestNGMethod> allMethods,
java.lang.String[] includedGroups,
java.util.Set<java.lang.String> outGroups,
java.util.Set<ITestNGMethod> outMethods) |
protected static ITestNGMethod[] |
findMethodsThatBelongToGroup(ITestNGMethod[] methods,
java.lang.String groupRegexp) |
protected static ITestNGMethod[] |
findMethodsThatBelongToGroup(ITestNGMethod method,
ITestNGMethod[] methods,
java.lang.String groupRegexp)
Only used if a group is missing to flag an error on that method
|
public static java.util.Map<java.lang.String,java.util.List<ITestNGMethod>> findGroupsMethods(java.util.Collection<ITestClass> classes, boolean before)
classes
.protected static void findGroupTransitiveClosure(java.util.List<ITestNGMethod> includedMethods, java.util.List<ITestNGMethod> allMethods, java.lang.String[] includedGroups, java.util.Set<java.lang.String> outGroups, java.util.Set<ITestNGMethod> outMethods)
protected static ITestNGMethod[] findMethodsThatBelongToGroup(ITestNGMethod method, ITestNGMethod[] methods, java.lang.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, java.lang.String groupRegexp)
methods
- list of methods to searchgroupRegexp
- regex representing the group