| Package | Description |
|---|---|
| org.junit.platform.engine |
Public API for test engines.
|
| org.junit.platform.engine.discovery | |
| org.junit.platform.engine.support.filter |
Filter-related support classes intended to be
used by test engine implementations. |
| Modifier and Type | Interface and Description |
|---|---|
interface |
DiscoveryFilter<T>
A
DiscoveryFilter is applied during test discovery to determine if
a given container or test should be included in the test plan. |
| Modifier and Type | Method and Description |
|---|---|
static <T,V> Filter<T> |
Filter.adaptFilter(Filter<V> adaptee,
java.util.function.Function<T,V> converter)
Return a filter that will include elements if and only if the adapted
Filter includes the value converted using the supplied
Function. |
static <T> Filter<T> |
Filter.composeFilters(java.util.Collection<? extends Filter<T>> filters)
Return a filter that will include elements if and only if all of the
filters in the supplied collection of
filters include it. |
static <T> Filter<T> |
Filter.composeFilters(Filter<T>... filters)
Return a filter that will include elements if and only if all of the
filters in the supplied array of
filters include it. |
| Modifier and Type | Method and Description |
|---|---|
static <T,V> Filter<T> |
Filter.adaptFilter(Filter<V> adaptee,
java.util.function.Function<T,V> converter)
Return a filter that will include elements if and only if the adapted
Filter includes the value converted using the supplied
Function. |
static <T> Filter<T> |
Filter.composeFilters(Filter<T>... filters)
Return a filter that will include elements if and only if all of the
filters in the supplied array of
filters include it. |
| Modifier and Type | Method and Description |
|---|---|
static <T> Filter<T> |
Filter.composeFilters(java.util.Collection<? extends Filter<T>> filters)
Return a filter that will include elements if and only if all of the
filters in the supplied collection of
filters include it. |
| Modifier and Type | Interface and Description |
|---|---|
interface |
ClassNameFilter
DiscoveryFilter that is applied to the name of a Class. |
interface |
PackageNameFilter
DiscoveryFilter that is applied to the name of a Package. |
| Modifier and Type | Class and Description |
|---|---|
class |
ExclusionReasonConsumingFilter<T>
Decorator for a
Filter that passes the object and the
reason to a BiConsumer in case it is excluded. |
| Constructor and Description |
|---|
ExclusionReasonConsumingFilter(Filter<T> filter,
java.util.function.BiConsumer<T,java.util.Optional<java.lang.String>> reasonConsumer)
Create a new
ExclusionReasonConsumingFilter using the supplied
filter and reasonConsumer. |