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. |
org.junit.platform.launcher |
Public API for configuring and launching test plans.
|
org.junit.platform.launcher.core |
Core support classes for the
Launcher
including the LauncherFactory
and the LauncherDiscoveryRequestBuilder . |
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,
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(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,
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(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,
BiConsumer<T,Optional<String>> reasonConsumer)
Create a new
ExclusionReasonConsumingFilter using the supplied
filter and reasonConsumer . |
Modifier and Type | Interface and Description |
---|---|
interface |
PostDiscoveryFilter
A
PostDiscoveryFilter is applied to TestDescriptors
after test discovery. |
Modifier and Type | Class and Description |
---|---|
class |
EngineFilter
An
EngineFilter is applied to all TestEngines
before they are used. |
Modifier and Type | Method and Description |
---|---|
LauncherDiscoveryRequestBuilder |
LauncherDiscoveryRequestBuilder.filters(Filter<?>... filters)
Add all of the supplied
filters to the request. |