Top Description Methods
org.junit.platform.launcher

public Interface LauncherDiscoveryRequest

extends EngineDiscoveryRequest
Known Direct Implementers
org.junit.platform.launcher.core.DefaultDiscoveryRequest, org.junit.platform.launcher.core.DelegatingLauncherDiscoveryRequest
Annotations
@API
status:STABLE
since:1.0
Static Imports
org.apiguardian.api.API.Status.STABLE

LauncherDiscoveryRequest extends the EngineDiscoveryRequest API with additional filters that are applied by the Launcher itself.

Specifically, a LauncherDiscoveryRequest contains the following.

This interface is not intended to be implemented by clients.

Since
1.0
See Also
org.junit.platform.launcher.core.LauncherDiscoveryRequestBuilder, EngineDiscoveryRequest, EngineFilter, ConfigurationParameters, DiscoverySelector, DiscoveryFilter, PostDiscoveryFilter, getEngineFilters(), getPostDiscoveryFilters()

Method Summary

Modifier and TypeMethod and Description
public default LauncherDiscoveryListener

Returns:

the discovery listener; never null
getDiscoveryListener
()

Overrides default org.junit.platform.engine.EngineDiscoveryRequest.getDiscoveryListener.

Get the LauncherDiscoveryListener for this request.

public List<EngineFilter>

Returns:

the list of EngineFilters for this request; never null but potentially empty
getEngineFilters
()

Get the EngineFilters for this request.

public List<PostDiscoveryFilter>

Returns:

the list of PostDiscoveryFilters for this request; never null but potentially empty
getPostDiscoveryFilters
()

Get the PostDiscoveryFilters for this request.

Inherited from org.junit.platform.engine.EngineDiscoveryRequest:
getConfigurationParametersgetFiltersByTypegetOutputDirectoryCreatorgetOutputDirectoryProvidergetSelectorsByType

Method Detail

getDiscoveryListenerback to summary
public default LauncherDiscoveryListener getDiscoveryListener()

Overrides default org.junit.platform.engine.EngineDiscoveryRequest.getDiscoveryListener.

Get the LauncherDiscoveryListener for this request.

The default implementation returns a no-op listener that ignores all calls so that engines that call this methods can be used with an earlier version of the JUnit Platform that did not yet include it.

Returns:LauncherDiscoveryListener

the discovery listener; never null

Annotations
@API
status:STABLE
since:1.10
@Override
Since
1.6
getEngineFiltersback to summary
public List<EngineFilter> getEngineFilters()

Get the EngineFilters for this request.

The returned filters are to be combined using AND semantics, i.e. all of them have to include an engine for it to contribute to the test plan.

Returns:List<EngineFilter>

the list of EngineFilters for this request; never null but potentially empty

getPostDiscoveryFiltersback to summary
public List<PostDiscoveryFilter> getPostDiscoveryFilters()

Get the PostDiscoveryFilters for this request.

The returned filters are to be combined using AND semantics, i.e. all of them have to include a TestDescriptor for it to end up in the test plan.

Returns:List<PostDiscoveryFilter>

the list of PostDiscoveryFilters for this request; never null but potentially empty