Interface EngineDiscoveryRequest

    • Method Detail

      • getSelectorsByType

        <T extends DiscoverySelectorList<T> getSelectorsByType​(Class<T> selectorType)
        Get the DiscoverySelectors for this request, filtered by a particular type.
        Parameters:
        selectorType - the type of DiscoverySelector to filter by
        Returns:
        all selectors of this request that are instances of selectorType; never null but potentially empty
      • getFiltersByType

        <T extends DiscoveryFilter<?>> List<T> getFiltersByType​(Class<T> filterType)
        Get the 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.

        Parameters:
        filterType - the type of DiscoveryFilter to filter by
        Returns:
        all filters of this request that are instances of filterType; never null but potentially empty
      • getDiscoveryListener

        @API(status=EXPERIMENTAL,
             since="1.6")
        default EngineDiscoveryListener getDiscoveryListener()
        Get the 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.

        Returns:
        the discovery listener; never null
        Since:
        1.6