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!>!

Get a list of class annotations that are annotated with @CustomFilter with this class as the filter class.

(Mutable)List<Annotation!>!

Get a list of method annotations that are annotated with @CustomFilter with this class as the filter class.

Inherited Constants

From org.junit.runner.manipulation.Filter
const Filter!

Inherited functions

From org.junit.runner.manipulation.Filter
Unit
apply(child: Any!)
abstract String!
Filter!
intersect(second: Filter!)
java-static Filter!
matchMethodDescription(desiredDescription: Description!)

Public constructors

AbstractFilter

AbstractFilter()

Public functions

shouldRun

fun shouldRun(description: Description!): Boolean

Protected functions

evaluateTest

protected abstract fun evaluateTest(description: Description!): Boolean

Determine if given test description matches filter.

Parameters
description: Description!

the Description describing the test

Returns
Boolean

true if matched

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 Description describing the test

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 Description describing the test

Returns
(Mutable)List<Annotation!>!

a list of annotations on methods that are handled by this filter