public class Tags
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static Tags |
EMPTY_TAGS
No tags specified, meaning no tests should be filtered from the test run.
|
java.util.Set<java.lang.String> |
excludedTags
The set of excluded tags which tests must not be tagged with to be included in the test run.
|
java.lang.String |
expressionTags
An expression of tags using condition to create complex tag filtering.
|
java.util.Set<java.lang.String> |
tags
The set of tags which tests must be tagged with to be included in the test run.
|
Constructor and Description |
---|
Tags(java.util.Set<java.lang.String> tags,
java.util.Set<java.lang.String> excludedTags,
java.lang.String expressionTags)
Constructs a
Tags instance with the specified tags and anti-tags (excluded tags). |
Modifier and Type | Method and Description |
---|---|
static Tags |
excludedTags(java.util.Set<java.lang.String> excludedTags)
Constructs a
Tags instance with the specified anti-tags (excluded tags). |
static Tags |
expressionTags(java.lang.String expressionTag)
Constructs a
Tags instance with the specified expression tag. |
static Tags |
tags(java.util.Set<java.lang.String> tags)
Constructs a
Tags instance with the specified tags. |
public static final Tags EMPTY_TAGS
public final java.util.Set<java.lang.String> tags
public final java.util.Set<java.lang.String> excludedTags
public final java.lang.String expressionTags
public Tags(java.util.Set<java.lang.String> tags, java.util.Set<java.lang.String> excludedTags, java.lang.String expressionTags)
Tags
instance with the specified tags and anti-tags (excluded tags).tags
- The set of tags which tests must be tagged with to be included in the test run.excludedTags
- The set of excluded tags which tests must not be tagged with to be included
in the test run.expressionTags
- An expression using condition to create complex tag filtering
Condition
public static Tags tags(java.util.Set<java.lang.String> tags)
Tags
instance with the specified tags.tags
- The set of tags which tests must be tagged with to be included in the test run.Tags
instance.public static Tags excludedTags(java.util.Set<java.lang.String> excludedTags)
Tags
instance with the specified anti-tags (excluded tags).excludedTags
- The set of excluded tags which tests must not be tagged with to be
included in the test run.Tags
instance.public static Tags expressionTags(java.lang.String expressionTag)
Tags
instance with the specified expression tag.expressionTag
- The expression tagTags
instance.