{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}
public abstract class AbstractFilter extends Filter
Helper parent class for Filter that allows suites to run if any child matches.
Public constructors |
|
|---|---|
Public methods |
|
|---|---|
boolean |
shouldRun(Description description) |
Protected methods |
|
|---|---|
abstract boolean |
evaluateTest(Description description)Determine if given test description matches filter. |
List<Annotation> |
getClassAnnotations(Description description)Get a list of class annotations that are annotated with @CustomFilter with this class as the filter class. |
List<Annotation> |
getMethodAnnotations(Description description)Get a list of method annotations that are annotated with @CustomFilter with this class as the filter class. |
Inherited methods |
||||||||
|---|---|---|---|---|---|---|---|---|
|
||||||||
protected abstract boolean evaluateTest(Description description)
Determine if given test description matches filter.
| Parameters | |
|---|---|
Description description |
the |
| Returns | |
|---|---|
boolean |
|
protected List<Annotation> getClassAnnotations(Description description)
Get a list of class annotations that are annotated with @CustomFilter with this class as the filter class.
| Parameters | |
|---|---|
Description description |
the |
| Returns | |
|---|---|
List<Annotation> |
a list of annotations on the test class that are handled by this filter |
protected List<Annotation> getMethodAnnotations(Description description)
Get a list of method annotations that are annotated with @CustomFilter with this class as the filter class.
| Parameters | |
|---|---|
Description description |
the |
| Returns | |
|---|---|
List<Annotation> |
a list of annotations on methods that are handled by this filter |