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