Class GroupEvaluator
java.lang.Object
com.carrotsearch.randomizedtesting.GroupEvaluator
Evaluates enabled/ disabled state for a given test group.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final FilterExpressionParser.Node
private String
private final HashMap
<Class<? extends Annotation>, GroupEvaluator.TestGroupInfo> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
private HashMap
<Class<? extends Annotation>, GroupEvaluator.TestGroupInfo> collectGroups
(List<RandomizedRunner.TestCandidate> testCandidates) getIgnoreReason
(AnnotatedElement... elements) (package private) boolean
boolean
isGroupEnabled
(Class<? extends Annotation> testGroupAnnotation) private String
toString
(Annotation ann)
-
Field Details
-
testGroups
-
filter
-
filterExpression
-
-
Constructor Details
-
GroupEvaluator
GroupEvaluator(List<RandomizedRunner.TestCandidate> testCandidates)
-
-
Method Details
-
collectGroups
private HashMap<Class<? extends Annotation>,GroupEvaluator.TestGroupInfo> collectGroups(List<RandomizedRunner.TestCandidate> testCandidates) -
appendGroupFilteringOptions
-
hasFilteringExpression
boolean hasFilteringExpression() -
getIgnoreReason
- Returns:
- Returns a non-null string with the reason why the annotated element (class, test or test-class pair) should be ignored in the execution. This is an expert-level method, typically tests shouldn't be concerned with this.
-
toString
-
isGroupEnabled
- Returns:
- Returns the current state of the an annotation marked with
TestGroup
. Note that tests may be enabled or disabled using filtering expressions so an enabled group does not necessarily mean a test marked with this group will be executed.
-