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 . |
org.junit.platform.surefire.provider |
Maven Surefire provider for the JUnit Platform.
|
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 | Class and Description |
---|---|
(package private) class |
CompositeFilter<T>
Combines a collection of
Filters into a new filter that will
include elements if and only if all of the filters in the specified collection
include it. |
Modifier and Type | Field and Description |
---|---|
private static Filter |
CompositeFilter.ALWAYS_INCLUDED_FILTER |
Modifier and Type | Field and Description |
---|---|
private java.util.Collection<Filter<T>> |
CompositeFilter.filters |
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 . |
(package private) static <T> Filter<T> |
CompositeFilter.alwaysIncluded() |
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. |
Constructor and Description |
---|
CompositeFilter(java.util.Collection<? extends Filter<T>> filters) |
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 |
---|---|
(package private) class |
AbstractClassNameFilter
Abstract
ClassNameFilter that servers as a superclass
for filters including or excluding fully qualified class names
based on pattern-matching. |
(package private) class |
ExcludeClassNameFilter
ClassNameFilter that matches fully qualified class names against
patterns in the form of regular expressions. |
(package private) class |
ExcludePackageNameFilter
PackageNameFilter that matches fully qualified package names that
are not prefixed by one of the package names provided to the filter. |
(package private) class |
IncludeClassNameFilter
ClassNameFilter that matches fully qualified class names against
patterns in the form of regular expressions. |
(package private) class |
IncludePackageNameFilter
PackageNameFilter that matches fully qualified package names that
are prefixed by one of the package names provided to the filter. |
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. |
Modifier and Type | Field and Description |
---|---|
private Filter<T> |
ExclusionReasonConsumingFilter.filter |
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 . |
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. |
private boolean |
Root.isExcluded(TestDescriptor descriptor,
Filter<TestDescriptor> postDiscoveryFilter) |
private void |
LauncherDiscoveryRequestBuilder.storeFilter(Filter<?> filter) |
Modifier and Type | Field and Description |
---|---|
(package private) Filter<?>[] |
JUnitPlatformProvider.includeAndExcludeFilters |
private Filter<?>[] |
TestPlanScannerFilter.includeAndExcludeFilters |
Modifier and Type | Method and Description |
---|---|
private Filter<?>[] |
JUnitPlatformProvider.getIncludeAndExcludeFilters() |
Constructor and Description |
---|
TestPlanScannerFilter(Launcher launcher,
Filter<?>[] includeAndExcludeFilters) |