@API(status=STABLE,
since="1.0")
public interface EngineDiscoveryRequest
EngineDiscoveryRequest provides a TestEngine access 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.
TestEngine,
TestDescriptor,
DiscoverySelector,
DiscoveryFilter,
ConfigurationParameters| Modifier and Type | Method and Description |
|---|---|
ConfigurationParameters |
getConfigurationParameters()
Get the
ConfigurationParameters for this request. |
default EngineDiscoveryListener |
getDiscoveryListener()
Get the
EngineDiscoveryListener for this request. |
<T extends DiscoveryFilter<?>> |
getFiltersByType(java.lang.Class<T> filterType)
Get the
DiscoveryFilters for this request,
filtered by a particular type. |
<T extends DiscoverySelector> |
getSelectorsByType(java.lang.Class<T> selectorType)
Get the
DiscoverySelectors for this request,
filtered by a particular type. |
<T extends DiscoverySelector> java.util.List<T> getSelectorsByType(java.lang.Class<T> selectorType)
DiscoverySelectors for this request,
filtered by a particular type.selectorType - the type of DiscoverySelector to filter byselectorType; never null but potentially empty<T extends DiscoveryFilter<?>> java.util.List<T> getFiltersByType(java.lang.Class<T> filterType)
DiscoveryFilters for 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.
filterType - the type of DiscoveryFilter to filter byfilterType; never null but potentially emptyConfigurationParameters getConfigurationParameters()
ConfigurationParameters for this request.null@API(status=EXPERIMENTAL,
since="1.6")
default EngineDiscoveryListener getDiscoveryListener()
EngineDiscoveryListener 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 this API.
null