AbstractFilter
abstract class AbstractFilter : Filter
Helper parent class for Filter that allows suites to run if any child matches.
Summary
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 |
|---|
Public constructors
Public functions
Protected functions
evaluateTest
protected abstract fun evaluateTest(description: Description!): Boolean
Determine if given test description matches filter.
| Parameters | |
|---|---|
description: Description! |
the |
| Returns | |
|---|---|
Boolean |
|
getClassAnnotations
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 |
getMethodAnnotations
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 |