public class TestFilterImpl extends java.lang.Object implements TestFilter
Constructor and Description |
---|
TestFilterImpl()
Creates a new name filter for test descriptors with a null match, which
means all test names will match this new filter.
|
TestFilterImpl(java.lang.String prefix)
Creates a new filter for test name with the given string.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(TestDescriptor desc)
Accepts all test names matching this filter's expression attribute.
|
java.lang.String |
toString() |
public TestFilterImpl()
public TestFilterImpl(java.lang.String prefix)
prefix
- the filter that test name must match. If null, all
test names will match.public boolean accept(TestDescriptor desc)
accept
in interface TestFilter
desc
- the test descriptor to accept or reject.public java.lang.String toString()
toString
in class java.lang.Object