Top Constructors Methods
org.testng.internal

public final Class GroupsHelper

extends Object
Class Inheritance
Imports
java.util.HashSet, .List, .Map, java.util.stream.Collectors, org.testng.collections.Lists

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private static void
collectGroups(List<String> groups, List<String> unfinishedGroups, Map<String, List<String>> metaGroups, Map<String, String> result)

public static Map<String, String>

Returns:

a map that represents the computed group names.
createGroups
(Map<String, List<String>>
Represents a Key/Value pair of dynamically defined groups by the user. For e.g.,
                                    <groups> 
<define name="dynamicGroup">
<include name="regressionMethod"/>
</define>
</groups>
metaGroups
,
List<String>
A List of groups that are included/excluded in a given <test>
groups
)

Helps create a map of groups (key/value = groupName/groupName) which takes into consideration the included/excluded group in conjunction with a possible group definition that a user may have created via their suite xml file.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

GroupsHelperback to summary
private GroupsHelper()

Method Detail

collectGroupsback to summary
private static void collectGroups(List<String> groups, List<String> unfinishedGroups, Map<String, List<String>> metaGroups, Map<String, String> result)
createGroupsback to summary
public static Map<String, String> createGroups(Map<String, List<String>> metaGroups, List<String> groups)

Helps create a map of groups (key/value = groupName/groupName) which takes into consideration the included/excluded group in conjunction with a possible group definition that a user may have created via their suite xml file.

Parameters
metaGroups:Map<String, List<String>>

Represents a Key/Value pair of dynamically defined groups by the user. For e.g.,

                                    <groups> 
<define name="dynamicGroup">
<include name="regressionMethod"/>
</define>
</groups>
groups:List<String>

A List of groups that are included/excluded in a given <test>

Returns:Map<String, String>

a map that represents the computed group names.