| Package | Description |
|---|---|
| org.junit.platform.engine |
Public API for test engines.
|
| org.junit.platform.engine.support.descriptor |
TestDescriptor-related support classes
intended to be used by test engine implementations and clients of
the launcher. |
| org.junit.platform.launcher |
Public API for configuring and launching test plans.
|
| Modifier and Type | Method and Description |
|---|---|
Optional<TestSource> |
TestDescriptor.getSource()
Get the source of the test or container described
by this descriptor, if available.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
FileSystemSource
File system based
TestSource. |
interface |
UriSource
A
TestSource that can be represented as a URI. |
| Modifier and Type | Class and Description |
|---|---|
class |
ClasspathResourceSource
Classpath resource based
TestSource
with an optional position. |
class |
ClassSource
Java class based
TestSource with an optional
position. |
class |
CompositeTestSource
A
CompositeTestSource contains one or more TestSources. |
class |
DirectorySource
Directory based
TestSource. |
class |
FileSource
File based
TestSource with an optional
position. |
class |
MethodSource
Java method based
TestSource. |
class |
PackageSource
Package based
TestSource. |
| Modifier and Type | Method and Description |
|---|---|
Optional<TestSource> |
AbstractTestDescriptor.getSource() |
List<TestSource> |
CompositeTestSource.getSources()
Get an immutable list of the sources stored in this
CompositeTestSource. |
| Modifier and Type | Method and Description |
|---|---|
static CompositeTestSource |
CompositeTestSource.from(Collection<? extends TestSource> sources)
Create a new
CompositeTestSource based on the supplied
collection of sources. |
| Constructor and Description |
|---|
AbstractTestDescriptor(UniqueId uniqueId,
String displayName,
TestSource source)
Create a new
AbstractTestDescriptor with the supplied
UniqueId, display name, and source. |
| Modifier and Type | Method and Description |
|---|---|
Optional<TestSource> |
TestIdentifier.getSource()
Get the source of the represented test
or container, if available.
|