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 theLauncherincluding theLauncherFactoryand theLauncherDiscoveryRequestBuilder.org.junit.platform.testkit.engine Test Kit for testing the execution of aTestEnginerunning 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 theDiscoverySelectorsfor 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 classClasspathResourceSelectorADiscoverySelectorthat 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.classClasspathRootSelectorADiscoverySelectorthat selects a classpath root so thatTestEnginescan search for class files or resources within the physical classpath — for example, to scan for test classes.classClassSelectorADiscoverySelectorthat selects aClassor class name so thatTestEnginescan discover tests or containers based on classes.classDirectorySelectorADiscoverySelectorthat selects a directory so thatTestEnginescan discover tests or containers based on directories in the file system.classFileSelectorADiscoverySelectorthat selects a file so thatTestEnginescan discover tests or containers based on files in the file system.classMethodSelectorADiscoverySelectorthat selects aMethodor a combination of class name, method name, and parameter types so thatTestEnginescan discover tests or containers based on methods.classModuleSelectorADiscoverySelectorthat selects a module name so thatTestEnginescan discover tests or containers based on modules.classPackageSelectorADiscoverySelectorthat selects a package name so thatTestEnginescan discover tests or containers based on packages.classUniqueIdSelectorADiscoverySelectorthat selects aUniqueIdso thatTestEnginescan discover tests or containers based on unique IDs.classUriSelectorADiscoverySelectorthat selects aURIso thatTestEnginescan 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.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 DiscoverySelector Modifier and Type Method Description <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 DiscoverySelector Modifier and Type Method Description LauncherDiscoveryRequestBuilderLauncherDiscoveryRequestBuilder. selectors(DiscoverySelector... selectors)Add all of the suppliedselectorsto the request.Method parameters in org.junit.platform.launcher.core with type arguments of type DiscoverySelector Modifier and Type Method Description LauncherDiscoveryRequestBuilderLauncherDiscoveryRequestBuilder. selectors(List<? extends DiscoverySelector> selectors)Add all of the suppliedselectorsto 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.BuilderEngineTestKit.Builder. selectors(DiscoverySelector... selectors)Add all of the supplied discovery selectors.
-