Module org.junit.platform.launcher
Package org.junit.platform.launcher
Interface LauncherDiscoveryRequest
-
- All Superinterfaces:
EngineDiscoveryRequest
@API(status=STABLE, since="1.0") public interface LauncherDiscoveryRequest extends EngineDiscoveryRequest
LauncherDiscoveryRequestextends theEngineDiscoveryRequestAPI with additional filters that are applied by theLauncheritself.Specifically, a
LauncherDiscoveryRequestcontains the following.- Engine Filters: filters that are applied before
each
TestEngineis executed. All of them have to include an engine for it to contribute to the test plan. - Configuration Parameters: configuration parameters that can be used to influence the discovery process
- Discovery Selectors: components that select
resources that a
TestEnginecan use to discover tests - Discovery Filters: filters that should be applied
by
TestEnginesduring test discovery. All of them have to include a resource for it to end up in the test plan. - Post-Discovery Filters: filters that will be
applied by the
LauncherafterTestEngineshave performed test discovery. All of them have to include aTestDescriptorfor it to end up in the test plan.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default LauncherDiscoveryListenergetDiscoveryListener()Get theLauncherDiscoveryListenerfor this request.List<EngineFilter>getEngineFilters()Get theEngineFiltersfor this request.List<PostDiscoveryFilter>getPostDiscoveryFilters()Get thePostDiscoveryFiltersfor this request.-
Methods inherited from interface org.junit.platform.engine.EngineDiscoveryRequest
getConfigurationParameters, getFiltersByType, getSelectorsByType
-
-
-
-
Method Detail
-
getEngineFilters
List<EngineFilter> getEngineFilters()
Get theEngineFiltersfor 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:
- the list of
EngineFiltersfor this request; nevernullbut potentially empty
-
getPostDiscoveryFilters
List<PostDiscoveryFilter> getPostDiscoveryFilters()
Get thePostDiscoveryFiltersfor this request.The returned filters are to be combined using AND semantics, i.e. all of them have to include a
TestDescriptorfor it to end up in the test plan.- Returns:
- the list of
PostDiscoveryFiltersfor this request; nevernullbut potentially empty
-
getDiscoveryListener
@API(status=EXPERIMENTAL, since="1.6") default LauncherDiscoveryListener getDiscoveryListener()
Get theLauncherDiscoveryListenerfor 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.
- Specified by:
getDiscoveryListenerin interfaceEngineDiscoveryRequest- Returns:
- the discovery listener; never
null - Since:
- 1.6
-
-