LauncherDiscoveryRequest extends the EngineDiscoveryRequest API
with additional filters that are applied by the Launcher itself.
Specifically, a LauncherDiscoveryRequest contains the following.
TestEngine is executed. All of them have to include an engine for it
to contribute to the test plan.TestEngine can use to discover testsTestEngines during test discovery. All of them have to include a
resource for it to end up in the test plan.Launcher after TestEngines have performed test
discovery. All of them have to include a TestDescriptor for it to end up
in the test plan.This interface is not intended to be implemented by clients.
org.junit.platform.launcher.core.LauncherDiscoveryRequestBuilder , EngineDiscoveryRequest, EngineFilter, ConfigurationParameters, DiscoverySelector, DiscoveryFilter, PostDiscoveryFilter, getEngineFilters(), getPostDiscoveryFilters()
| Modifier and Type | Method and Description |
|---|---|
| public default LauncherDiscoveryListener | Returns: the discovery listener; nevernullOverrides default org. Get the |
| public List | Returns: the list ofEngineFilters for this request; never
null but potentially emptyGet the |
| public List | Returns: the list ofPostDiscoveryFilters for this request; never
null but potentially emptyGet the |
| getDiscoveryListener | back to summary |
|---|---|
| public default LauncherDiscoveryListener getDiscoveryListener() Overrides default org. Get the 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.
| |
| getEngineFilters | back to summary |
|---|---|
| public List Get the 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.
| |
| getPostDiscoveryFilters | back to summary |
|---|---|
| public List Get the The returned filters are to be combined using AND semantics, i.e. all
of them have to include a
| |