Class GroupMatcherMethodSelector
- java.lang.Object
-
- org.apache.maven.surefire.testng.utils.GroupMatcherMethodSelector
-
- All Implemented Interfaces:
org.testng.IMethodSelector
public class GroupMatcherMethodSelector extends java.lang.Object implements org.testng.IMethodSelectorMethod selector delegating toGroupMatcherto decide if a method is included or not.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<org.testng.ITestNGMethod,java.lang.Boolean>answersprivate static GroupMatchermatcherprivate static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description GroupMatcherMethodSelector()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanincludeMethod(org.testng.IMethodSelectorContext context, org.testng.ITestNGMethod method, boolean isTestMethod)static voidsetGroupMatcher(GroupMatcher matcher)static voidsetGroups(java.lang.String groups, java.lang.String excludedGroups)voidsetTestMethods(java.util.List<org.testng.ITestNGMethod> testMethods)
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
matcher
private static GroupMatcher matcher
-
answers
private java.util.Map<org.testng.ITestNGMethod,java.lang.Boolean> answers
-
-
Method Detail
-
includeMethod
public boolean includeMethod(org.testng.IMethodSelectorContext context, org.testng.ITestNGMethod method, boolean isTestMethod)- Specified by:
includeMethodin interfaceorg.testng.IMethodSelector
-
setTestMethods
public void setTestMethods(java.util.List<org.testng.ITestNGMethod> testMethods)
- Specified by:
setTestMethodsin interfaceorg.testng.IMethodSelector
-
setGroups
public static void setGroups(java.lang.String groups, java.lang.String excludedGroups)
-
setGroupMatcher
public static void setGroupMatcher(GroupMatcher matcher)
-
-