Uses of Interface
org.junit.platform.engine.DiscoverySelector
Packages that use DiscoverySelector
Package
Description
Configuration options for JUnit's console launcher.
Public API for test engines.
Configurable test discovery implementation that can be reused by different test engines.
Core support classes for the
Launcher
including the LauncherFactory
and the LauncherDiscoveryRequestBuilder.Test Kit for testing the execution of a
TestEngine
running on the JUnit Platform.-
Uses of DiscoverySelector in org.junit.platform.console.options
Methods in org.junit.platform.console.options that return types with arguments of type DiscoverySelector -
Uses of DiscoverySelector in org.junit.platform.engine
Methods in org.junit.platform.engine with type parameters of type DiscoverySelectorModifier and TypeMethodDescription<T extends DiscoverySelector>
List<T> EngineDiscoveryRequest.getSelectorsByType(Class<T> selectorType) Get theDiscoverySelectorsfor this request, filtered by a particular type.Methods in org.junit.platform.engine with parameters of type DiscoverySelectorModifier and TypeMethodDescriptiondefault voidEngineDiscoveryListener.selectorProcessed(UniqueId engineId, DiscoverySelector selector, SelectorResolutionResult result) Must be called after a discovery selector has been processed by a test engine. -
Uses of DiscoverySelector in org.junit.platform.engine.discovery
Classes in org.junit.platform.engine.discovery that implement DiscoverySelectorModifier and TypeClassDescriptionfinal classADiscoverySelectorthat selects the name of a classpath resource so thatTestEnginescan load resources from the classpath — for example, to load XML or JSON files from the classpath, potentially within JARs.final classADiscoverySelectorthat selects a classpath root so thatTestEnginescan search for class files or resources within the physical classpath — for example, to scan for test classes.final classADiscoverySelectorthat selects aClassor class name so thatTestEnginescan discover tests or containers based on classes.final classADiscoverySelectorthat selects a directory so thatTestEnginescan discover tests or containers based on directories in the file system.final classADiscoverySelectorthat selects a file so thatTestEnginescan discover tests or containers based on files in the file system.final classADiscoverySelectorthat selects the iterations of a parentDiscoverySelectorvia their indices so thatTestEnginescan discover a subset of the iterations of tests or containers.final classADiscoverySelectorthat selects aMethodor a combination of class name, method name, and parameter types so thatTestEnginescan discover tests or containers based on methods.final classADiscoverySelectorthat selects a module name so thatTestEnginescan discover tests or containers based on modules.final classADiscoverySelectorthat selects a nestedClassor class name enclosed in other classes so thatTestEnginescan discover tests or containers based on classes.final classADiscoverySelectorthat selects a nestedMethodor a combination of enclosing class names, class name, method name, and parameter types so thatTestEnginescan discover tests or containers based on methods.final classADiscoverySelectorthat selects a package name so thatTestEnginescan discover tests or containers based on packages.final classADiscoverySelectorthat selects aUniqueIdso thatTestEnginescan discover tests or containers based on unique IDs.final classADiscoverySelectorthat selects aURIso thatTestEnginescan discover tests or containers based on URIs.Methods in org.junit.platform.engine.discovery that return DiscoverySelectorModifier and TypeMethodDescriptionIterationSelector.getParentSelector()Get the selected parentDiscoverySelector.Methods in org.junit.platform.engine.discovery that return types with arguments of type DiscoverySelectorModifier and TypeMethodDescriptionOptional<? extends DiscoverySelector> Parse the supplied selector.Optional<? extends DiscoverySelector> DiscoverySelectorIdentifierParser.parse(DiscoverySelectorIdentifier identifier, DiscoverySelectorIdentifierParser.Context context) Parse the suppliedDiscoverySelectorIdentifier.static Optional<? extends DiscoverySelector> Parse the supplied string representation of aDiscoverySelectorIdentifier.static Optional<? extends DiscoverySelector> DiscoverySelectors.parse(DiscoverySelectorIdentifier identifier) Parse the suppliedDiscoverySelectorIdentifier.static Stream<? extends DiscoverySelector> Parse the supplied string representations ofDiscoverySelectorIdentifiers.static Stream<? extends DiscoverySelector> DiscoverySelectors.parseAll(Collection<DiscoverySelectorIdentifier> identifiers) Parse the suppliedDiscoverySelectorIdentifiers.Methods in org.junit.platform.engine.discovery with parameters of type DiscoverySelectorModifier and TypeMethodDescriptionstatic IterationSelectorDiscoverySelectors.selectIteration(DiscoverySelector parentSelector, int... iterationIndices) Create anIterationSelectorfor the supplied parent selector and iteration indices. -
Uses of DiscoverySelector in org.junit.platform.engine.support.discovery
Methods in org.junit.platform.engine.support.discovery that return types with arguments of type DiscoverySelectorModifier and TypeMethodDescriptionSet<? extends DiscoverySelector> SelectorResolver.Match.expand()Expand this match in order to resolve the children of the containedTestDescriptor.Set<? extends DiscoverySelector> SelectorResolver.Resolution.getSelectors()Returns the selectors contained by this resolution.Methods in org.junit.platform.engine.support.discovery with parameters of type DiscoverySelectorModifier and TypeMethodDescriptionSelectorResolver.Context.resolve(DiscoverySelector selector) Resolve the suppliedTestDescriptor, if possible.default SelectorResolver.ResolutionSelectorResolver.resolve(DiscoverySelector selector, SelectorResolver.Context context) Resolve the suppliedDiscoverySelectorusing the suppliedContext.Method parameters in org.junit.platform.engine.support.discovery with type arguments of type DiscoverySelectorModifier and TypeMethodDescription<T extends TestDescriptor>
Optional<T> SelectorResolver.Context.addToParent(Supplier<DiscoverySelector> parentSelectorSupplier, Function<TestDescriptor, Optional<T>> creator) Add aTestDescriptorto a parent, specified by theDiscoverySelectorreturned by the suppliedSupplier, by applying the suppliedFunctionto the new parent.static SelectorResolver.MatchSelectorResolver.Match.exact(TestDescriptor testDescriptor, Supplier<Set<? extends DiscoverySelector>> childSelectorsSupplier) Factory for creating an exact match with potential children.static SelectorResolver.MatchSelectorResolver.Match.partial(TestDescriptor testDescriptor, Supplier<Set<? extends DiscoverySelector>> childSelectorsSupplier) Factory for creating a partial match with potential children.static SelectorResolver.ResolutionSelectorResolver.Resolution.selectors(Set<? extends DiscoverySelector> selectors) Factory for creating a resolution that contains the suppliedDiscoverySelectors. -
Uses of DiscoverySelector in org.junit.platform.launcher.core
Methods in org.junit.platform.launcher.core with parameters of type DiscoverySelectorModifier and TypeMethodDescriptionLauncherDiscoveryRequestBuilder.selectors(DiscoverySelector... selectors) Add all suppliedselectorsto the request.Method parameters in org.junit.platform.launcher.core with type arguments of type DiscoverySelectorModifier and TypeMethodDescriptionLauncherDiscoveryRequestBuilder.selectors(List<? extends DiscoverySelector> selectors) Add all suppliedselectorsto the request. -
Uses of DiscoverySelector in org.junit.platform.testkit.engine
Methods in org.junit.platform.testkit.engine with parameters of type DiscoverySelectorModifier and TypeMethodDescriptionEngineTestKit.Builder.selectors(DiscoverySelector... selectors) Add all of the supplied discovery selectors.