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 the
Launcher
including the LauncherFactory
and the LauncherDiscoveryRequestBuilder . |
Modifier and Type | Method and Description |
---|---|
<T extends DiscoverySelector> |
EngineDiscoveryRequest.getSelectorsByType(Class<T> selectorType)
Get the
DiscoverySelectors for this request,
filtered by a particular type. |
Modifier and Type | Class and Description |
---|---|
class |
ClasspathResourceSelector
A
DiscoverySelector that selects the name of a classpath resource
so that TestEngines can load resources
from the classpath — for example, to load XML or JSON files from the classpath,
potentially within JARs. |
class |
ClasspathRootSelector
A
DiscoverySelector that selects a classpath root so that
TestEngines can search for class
files or resources within the physical classpath — for example, to
scan for test classes. |
class |
ClassSelector
A
DiscoverySelector that selects a Class or class name so
that TestEngines can discover
tests or containers based on classes. |
class |
DirectorySelector
A
DiscoverySelector that selects a directory so that
TestEngines
can discover tests or containers based on directories in the
file system. |
class |
FileSelector
A
DiscoverySelector that selects a file so that
TestEngines
can discover tests or containers based on files in the
file system. |
class |
MethodSelector
A
DiscoverySelector that selects a Method or a combination of
class name, method name, and parameter types so that
TestEngines can discover tests
or containers based on methods. |
class |
ModuleSelector
A
DiscoverySelector that selects a module name so that
TestEngines can discover
tests or containers based on modules. |
class |
PackageSelector
A
DiscoverySelector that selects a package name so that
TestEngines can discover
tests or containers based on packages. |
class |
UniqueIdSelector
A
DiscoverySelector that selects a UniqueId so that
TestEngines can discover
tests or containers based on unique IDs. |
class |
UriSelector
A
DiscoverySelector that selects a URI so that
TestEngines
can discover tests or containers based on URIs. |
Modifier and Type | Method and Description |
---|---|
Set<? extends DiscoverySelector> |
SelectorResolver.Match.expand()
Expand this match in order to resolve the children of the contained
TestDescriptor . |
Set<? extends DiscoverySelector> |
SelectorResolver.Resolution.getSelectors()
Returns the selectors contained by this resolution.
|
Modifier and Type | Method and Description |
---|---|
Optional<TestDescriptor> |
SelectorResolver.Context.resolve(DiscoverySelector selector)
Resolve the supplied
TestDescriptor , if possible. |
default SelectorResolver.Resolution |
SelectorResolver.resolve(DiscoverySelector selector,
SelectorResolver.Context context)
Resolve the supplied
DiscoverySelector using the supplied
Context . |
Modifier and Type | Method and Description |
---|---|
<T extends TestDescriptor> |
SelectorResolver.Context.addToParent(Supplier<DiscoverySelector> parentSelectorSupplier,
Function<TestDescriptor,Optional<T>> creator)
Add a
TestDescriptor to a parent, specified by the DiscoverySelector returned by the supplied Supplier , by
applying the supplied Function 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 supplied
DiscoverySelectors . |
Modifier and Type | Method and Description |
---|---|
LauncherDiscoveryRequestBuilder |
LauncherDiscoveryRequestBuilder.selectors(DiscoverySelector... selectors)
Add all of the supplied
selectors to the request. |
Modifier and Type | Method and Description |
---|---|
LauncherDiscoveryRequestBuilder |
LauncherDiscoveryRequestBuilder.selectors(List<? extends DiscoverySelector> selectors)
Add all of the supplied
selectors to the request. |
Copyright © 2019. All rights reserved.