@API(status=STABLE,
since="1.0")
public final class TagFilter
extends java.lang.Object
PostDiscoveryFilters
based on included and excluded tags.includeTags(String...),
excludeTags(String...)| Modifier | Constructor and Description |
|---|---|
private |
TagFilter() |
| Modifier and Type | Method and Description |
|---|---|
static PostDiscoveryFilter |
excludeTags(java.util.List<java.lang.String> tags)
Create an exclude filter based on the supplied
tags. |
static PostDiscoveryFilter |
excludeTags(java.lang.String... tags)
Create an exclude filter based on the supplied
tags. |
static PostDiscoveryFilter |
includeTags(java.util.List<java.lang.String> tags)
Create an include filter based on the supplied
tags. |
static PostDiscoveryFilter |
includeTags(java.lang.String... tags)
Create an include filter based on the supplied
tags. |
private static java.util.List<TestTag> |
toTestTags(java.util.List<java.lang.String> tags) |
public static PostDiscoveryFilter includeTags(java.lang.String... tags) throws PreconditionViolationException
tags.
Note: each tag will be trimmed.
Containers and tests will only be executed if they are tagged with at least one of the supplied included tags.
tags - the included tags; never null or emptyPreconditionViolationException - if the supplied tags array is
null or empty, or if any individual tag is not syntactically
validincludeTags(List),
TestTag.isValid(String)public static PostDiscoveryFilter includeTags(java.util.List<java.lang.String> tags) throws PreconditionViolationException
tags.
Note: each tag will be trimmed.
Containers and tests will only be executed if they are tagged with at least one of the supplied included tags.
tags - the included tags; never null or emptyPreconditionViolationException - if the supplied tags list is
null or empty, or if any individual tag is not syntactically
validincludeTags(String...),
TestTag.isValid(String)public static PostDiscoveryFilter excludeTags(java.lang.String... tags) throws PreconditionViolationException
tags.
Note: each tag will be trimmed.
Containers and tests will only be executed if they are not tagged with any of the supplied excluded tags.
tags - the excluded tags; never null or emptyPreconditionViolationException - if the supplied tags array is
null or empty, or if any individual tag is not syntactically
validexcludeTags(List),
TestTag.isValid(String)public static PostDiscoveryFilter excludeTags(java.util.List<java.lang.String> tags) throws PreconditionViolationException
tags.
Note: each tag will be trimmed.
Containers and tests will only be executed if they are not tagged with any of the supplied excluded tags.
tags - the excluded tags; never null or emptyPreconditionViolationException - if the supplied tags list is
null or empty, or if any individual tag is not syntactically
validexcludeTags(String...),
TestTag.isValid(String)private static java.util.List<TestTag> toTestTags(java.util.List<java.lang.String> tags)