| 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 | Description |
|---|---|---|
java.util.Optional<TestSource> |
TestDescriptor.getSource() |
Get the source of the test or container described
by this descriptor, if available.
|
| Modifier and Type | Interface | Description |
|---|---|---|
interface |
FileSystemSource |
File system based
TestSource. |
interface |
UriSource |
A
TestSource that can be represented as a URI. |
| Modifier and Type | Class | 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 | Description |
|---|---|---|
java.util.Optional<TestSource> |
AbstractTestDescriptor.getSource() |
|
java.util.List<TestSource> |
CompositeTestSource.getSources() |
Get an immutable list of the sources stored in this
CompositeTestSource. |
| Modifier and Type | Method | Description |
|---|---|---|
static CompositeTestSource |
CompositeTestSource.from(java.util.Collection<? extends TestSource> sources) |
Create a new
CompositeTestSource based on the supplied
collection of sources. |
| Constructor | Description |
|---|---|
AbstractTestDescriptor(UniqueId uniqueId,
java.lang.String displayName,
TestSource source) |
Create a new
AbstractTestDescriptor with the supplied
UniqueId, display name, and source. |
| Modifier and Type | Method | Description |
|---|---|---|
java.util.Optional<TestSource> |
TestIdentifier.getSource() |
Get the source of the represented test
or container, if available.
|