Package org.junit.platform.engine
Interface EngineDiscoveryRequest
-
- All Known Subinterfaces:
LauncherDiscoveryRequest
- All Known Implementing Classes:
DefaultDiscoveryRequest,DelegatingLauncherDiscoveryRequest
@API(status=STABLE, since="1.0") public interface EngineDiscoveryRequestEngineDiscoveryRequestprovides aTestEngineaccess to the information necessary to discover tests and containers.A request is comprised of selectors and filters. While the former select resources that engines can use to discover tests, the latter specify how such resources are to be filtered. All of the filters have to include a resource for it to end up in the test plan.
In addition, the supplied configuration parameters can be used to influence the discovery process.
- Since:
- 1.0
- See Also:
TestEngine,TestDescriptor,DiscoverySelector,DiscoveryFilter,ConfigurationParameters
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description ConfigurationParametersgetConfigurationParameters()Get theConfigurationParametersfor this request.default EngineDiscoveryListenergetDiscoveryListener()Get theEngineDiscoveryListenerfor this request.<T extends DiscoveryFilter<?>>
java.util.List<T>getFiltersByType(java.lang.Class<T> filterType)Get theDiscoveryFiltersfor this request, filtered by a particular type.default OutputDirectoryCreatorgetOutputDirectoryCreator()Get theOutputDirectoryCreatorfor this request.default OutputDirectoryProvidergetOutputDirectoryProvider()Deprecated.Please usegetOutputDirectoryCreator()instead<T extends DiscoverySelector>
java.util.List<T>getSelectorsByType(java.lang.Class<T> selectorType)Get theDiscoverySelectorsfor this request, filtered by a particular type.
-
-
-
Method Detail
-
getSelectorsByType
<T extends DiscoverySelector> java.util.List<T> getSelectorsByType(java.lang.Class<T> selectorType)
Get theDiscoverySelectorsfor this request, filtered by a particular type.- Parameters:
selectorType- the type ofDiscoverySelectorto filter by- Returns:
- all selectors of this request that are instances of
selectorType; nevernullbut potentially empty
-
getFiltersByType
<T extends DiscoveryFilter<?>> java.util.List<T> getFiltersByType(java.lang.Class<T> filterType)
Get theDiscoveryFiltersfor this request, filtered by a particular type.The returned filters are to be combined using AND semantics, i.e. all of them have to include a resource for it to end up in the test plan.
- Parameters:
filterType- the type ofDiscoveryFilterto filter by- Returns:
- all filters of this request that are instances of
filterType; nevernullbut potentially empty
-
getConfigurationParameters
ConfigurationParameters getConfigurationParameters()
Get theConfigurationParametersfor this request.- Returns:
- the configuration parameters; never
null
-
getDiscoveryListener
@API(status=STABLE, since="1.10") default EngineDiscoveryListener getDiscoveryListener()Get theEngineDiscoveryListenerfor this request.- Returns:
- the discovery listener; never
null - Since:
- 1.6
-
getOutputDirectoryProvider
@Deprecated @API(status=DEPRECATED, since="1.14") default OutputDirectoryProvider getOutputDirectoryProvider()Deprecated.Please usegetOutputDirectoryCreator()insteadGet theOutputDirectoryProviderfor this request.- Returns:
- the output directory provider; never
null - Since:
- 1.12
-
getOutputDirectoryCreator
@API(status=MAINTAINED, since="1.14") default OutputDirectoryCreator getOutputDirectoryCreator()Get theOutputDirectoryCreatorfor this request.- Returns:
- the output directory creator; never
null - Since:
- 1.14
-
-