Uses of Interface
org.junit.platform.engine.DiscoverySelector
-
Packages that use DiscoverySelector Package Description org.junit.platform.engine Public API for test engines.org.junit.platform.engine.discovery org.junit.platform.engine.support.discovery Configurable test discovery implementation that can be reused by different test engines.org.junit.platform.launcher.core Core support classes for theLauncher
including theLauncherFactory
and theLauncherDiscoveryRequestBuilder
.org.junit.platform.testkit.engine Test Kit for testing the execution of aTestEngine
running on the JUnit Platform. -
-
Uses of DiscoverySelector in org.junit.platform.engine
Methods in org.junit.platform.engine with type parameters of type DiscoverySelector Modifier and Type Method Description <T extends DiscoverySelector>
List<T>EngineDiscoveryRequest. getSelectorsByType(Class<T> selectorType)
Get theDiscoverySelectors
for this request, filtered by a particular type. -
Uses of DiscoverySelector in org.junit.platform.engine.discovery
Classes in org.junit.platform.engine.discovery that implement DiscoverySelector Modifier and Type Class Description class
ClasspathResourceSelector
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
ClasspathRootSelector
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
ClassSelector
ADiscoverySelector
that selects aClass
or class name so thatTestEngines
can discover tests or containers based on classes.class
DirectorySelector
ADiscoverySelector
that selects a directory so thatTestEngines
can discover tests or containers based on directories in the file system.class
FileSelector
ADiscoverySelector
that selects a file so thatTestEngines
can discover tests or containers based on files in the file system.class
MethodSelector
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
ModuleSelector
ADiscoverySelector
that selects a module name so thatTestEngines
can discover tests or containers based on modules.class
PackageSelector
ADiscoverySelector
that selects a package name so thatTestEngines
can discover tests or containers based on packages.class
UniqueIdSelector
ADiscoverySelector
that selects aUniqueId
so thatTestEngines
can discover tests or containers based on unique IDs.class
UriSelector
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 DiscoverySelector Modifier and Type Method Description Set<? 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 DiscoverySelector Modifier and Type Method Description Optional<TestDescriptor>
SelectorResolver.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 DiscoverySelector Modifier and Type Method Description <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 DiscoverySelector Modifier and Type Method Description LauncherDiscoveryRequestBuilder
LauncherDiscoveryRequestBuilder. selectors(DiscoverySelector... selectors)
Add all of the suppliedselectors
to the request.Method parameters in org.junit.platform.launcher.core with type arguments of type DiscoverySelector Modifier and Type Method Description LauncherDiscoveryRequestBuilder
LauncherDiscoveryRequestBuilder. selectors(List<? extends DiscoverySelector> selectors)
Add all of the suppliedselectors
to the request. -
Uses of DiscoverySelector in org.junit.platform.testkit.engine
Methods in org.junit.platform.testkit.engine with parameters of type DiscoverySelector Modifier and Type Method Description EngineTestKit.Builder
EngineTestKit.Builder. selectors(DiscoverySelector... selectors)
Add all of the supplied discovery selectors.
-