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