Interface SelectorResolver

@API(status=EXPERIMENTAL, since="1.5") public interface SelectorResolver
A resolver that supports resolving one or multiple types of DiscoverySelectors.

An implementation of a resolve() method is typically comprised of the following steps:

  1. Check whether the selector is applicable for the current TestEngine and the current EngineDiscoveryRequest (e.g. for a test class: is it relevant for the current engine and does it pass all filters in the request?).
  2. If so, use the supplied Context, to add one or multiple TestDescriptors to the designated parent (see Context for details) and return a match or multiple matches. Alternatively, convert the supplied selector into one or multiple other selectors (e.g. a PackageSelector into a set of ClassSelectors). Otherwise, return unresolved().