public class TestSelectorList extends Object
PatternTestSelector
instances which, as a group, can decide whether or
not to include a given TestDescription
.Modifier and Type | Class and Description |
---|---|
static class |
TestSelectorList.Builder
Build a new
TestSelectorList from a list of strings, each of which is parsed by PatternTestSelector . |
Modifier and Type | Field and Description |
---|---|
static TestSelectorList |
EMPTY |
Modifier and Type | Method and Description |
---|---|
static TestSelectorList.Builder |
builder() |
static TestSelectorList |
empty() |
TestSelector |
findSelector(TestDescription description) |
List<String> |
getExplanation() |
List<String> |
getRawSelectors() |
boolean |
isEmpty() |
boolean |
isIncluded(TestDescription description) |
boolean |
possiblyIncludesClassName(String className)
Returns true if it is *possible* for the given classname to include tests.
|
public static final TestSelectorList EMPTY
public TestSelector findSelector(TestDescription description)
public boolean isIncluded(TestDescription description)
public boolean possiblyIncludesClassName(String className)
Before we go through the hassle of loading a class, confirm that it's possible for it to run tests.
public boolean isEmpty()
public static TestSelectorList empty()
public static TestSelectorList.Builder builder()