Uses of Interface
org.junit.platform.engine.DiscoverySelector
Packages that use DiscoverySelector
Package
Description
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
.Common support utilities for executing test suites on the JUnit Platform.
Test Kit for testing the execution of a
TestEngine
running on the JUnit Platform.-
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 theDiscoverySelectors
for this request, filtered by a particular type.Methods in org.junit.platform.engine with parameters of type DiscoverySelectorModifier and TypeMethodDescriptiondefault void
EngineDiscoveryListener.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 TypeClassDescriptionclass
ADiscoverySelector
that selects the name of a classpath resource so thatTestEngines
can load resources from the classpath — for example, to load XML or JSON files from the classpath, potentially within JARs.class
ADiscoverySelector
that selects a classpath root so thatTestEngines
can search for class files or resources within the physical classpath — for example, to scan for test classes.class
ADiscoverySelector
that selects aClass
or class name so thatTestEngines
can discover tests or containers based on classes.class
ADiscoverySelector
that selects a directory so thatTestEngines
can discover tests or containers based on directories in the file system.class
ADiscoverySelector
that selects a file so thatTestEngines
can discover tests or containers based on files in the file system.class
ADiscoverySelector
that selects aMethod
or a combination of class name, method name, and parameter types so thatTestEngines
can discover tests or containers based on methods.class
ADiscoverySelector
that selects a module name so thatTestEngines
can discover tests or containers based on modules.class
ADiscoverySelector
that selects a nestedClass
or class name enclosed in other classes so thatTestEngines
can discover tests or containers based on classes.class
ADiscoverySelector
that selects a nestedMethod
or a combination of enclosing classes names, class name, method name, and parameter types so thatTestEngines
can discover tests or containers based on methods.class
ADiscoverySelector
that selects a package name so thatTestEngines
can discover tests or containers based on packages.class
ADiscoverySelector
that selects aUniqueId
so thatTestEngines
can discover tests or containers based on unique IDs.class
ADiscoverySelector
that selects aURI
so thatTestEngines
can discover tests or containers based on URIs. -
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.Resolution
SelectorResolver.resolve(DiscoverySelector selector, SelectorResolver.Context context)
Resolve the suppliedDiscoverySelector
using 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 aTestDescriptor
to a parent, specified by theDiscoverySelector
returned by the suppliedSupplier
, by applying the suppliedFunction
to the new parent.static SelectorResolver.Match
SelectorResolver.Match.exact(TestDescriptor testDescriptor, Supplier<Set<? extends DiscoverySelector>> childSelectorsSupplier)
Factory for creating an exact match with potential children.static SelectorResolver.Match
SelectorResolver.Match.partial(TestDescriptor testDescriptor, Supplier<Set<? extends DiscoverySelector>> childSelectorsSupplier)
Factory for creating a partial match with potential children.static SelectorResolver.Resolution
SelectorResolver.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 of the suppliedselectors
to 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 of the suppliedselectors
to the request. -
Uses of DiscoverySelector in org.junit.platform.suite.commons
Methods in org.junit.platform.suite.commons with parameters of type DiscoverySelectorModifier and TypeMethodDescriptionSuiteLauncherDiscoveryRequestBuilder.selectors(DiscoverySelector... selectors)
Method parameters in org.junit.platform.suite.commons with type arguments of type DiscoverySelectorModifier and TypeMethodDescriptionSuiteLauncherDiscoveryRequestBuilder.selectors(List<? extends DiscoverySelector> selectors)
-
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.