Package | Description |
---|---|
org.junit.platform.engine |
Public API for test engines.
|
org.junit.platform.engine.discovery | |
org.junit.platform.launcher.core |
Core support classes for the
Launcher
including the LauncherFactory
and the LauncherDiscoveryRequestBuilder . |
Modifier and Type | Method | Description |
---|---|---|
<T extends DiscoverySelector> |
EngineDiscoveryRequest.getSelectorsByType(java.lang.Class<T> selectorType) |
Get the
DiscoverySelectors for this request,
filtered by a particular type. |
Modifier and Type | Class | 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 | Description |
---|---|---|
LauncherDiscoveryRequestBuilder |
LauncherDiscoveryRequestBuilder.selectors(DiscoverySelector... selectors) |
Add all of the supplied
selectors to the request. |
Modifier and Type | Method | Description |
---|---|---|
LauncherDiscoveryRequestBuilder |
LauncherDiscoveryRequestBuilder.selectors(java.util.List<? extends DiscoverySelector> selectors) |
Add all of the supplied
selectors to the request. |