| 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.engine.support.hierarchical |
Support classes and base implementation for any
TestEngine that wishes to organize test suites
hierarchically based on the
Node abstraction. |
| Modifier and Type | Method and Description |
|---|---|
TestDescriptor |
TestEngine.discover(EngineDiscoveryRequest discoveryRequest,
UniqueId uniqueId)
Discover tests according to the supplied
EngineDiscoveryRequest. |
TestDescriptor |
ExecutionRequest.getRootTestDescriptor()
Get the root
TestDescriptor of the engine that processes this
request. |
| Modifier and Type | Method and Description |
|---|---|
java.util.Optional<? extends TestDescriptor> |
TestDescriptor.findByUniqueId(UniqueId uniqueId)
Find the descriptor with the supplied unique ID.
|
java.util.Set<? extends TestDescriptor> |
TestDescriptor.getChildren()
Get the immutable set of children of this descriptor.
|
default java.util.Set<? extends TestDescriptor> |
TestDescriptor.getDescendants()
Get the immutable set of all descendants of this descriptor.
|
java.util.Optional<TestDescriptor> |
TestDescriptor.getParent()
Get the parent of this descriptor, if available.
|
| Modifier and Type | Method and Description |
|---|---|
void |
TestDescriptor.addChild(TestDescriptor descriptor)
Add a child to this descriptor.
|
static boolean |
TestDescriptor.containsTests(TestDescriptor testDescriptor)
Determine if the supplied descriptor or any of its descendants contains
any tests.
|
void |
EngineExecutionListener.dynamicTestRegistered(TestDescriptor testDescriptor)
Must be called when a new, dynamic
TestDescriptor has been
registered. |
void |
EngineExecutionListener.executionFinished(TestDescriptor testDescriptor,
TestExecutionResult testExecutionResult)
Must be called when the execution of a leaf or subtree of the test tree
has finished, regardless of the outcome.
|
void |
EngineExecutionListener.executionSkipped(TestDescriptor testDescriptor,
java.lang.String reason)
Must be called when the execution of a leaf or subtree of the test tree
has been skipped.
|
void |
EngineExecutionListener.executionStarted(TestDescriptor testDescriptor)
Must be called when the execution of a leaf or subtree of the test tree
is about to be started.
|
void |
TestDescriptor.removeChild(TestDescriptor descriptor)
Remove a child from this descriptor.
|
void |
EngineExecutionListener.reportingEntryPublished(TestDescriptor testDescriptor,
ReportEntry entry)
Can be called for any
testDescriptor in order to publish additional information, e.g.:
Output that would otherwise go to System.out
Information about test context or test data
|
void |
TestDescriptor.setParent(TestDescriptor parent)
Set the parent of this descriptor.
|
void |
TestDescriptor.Visitor.visit(TestDescriptor descriptor)
Visit a
TestDescriptor. |
| Constructor and Description |
|---|
ExecutionRequest(TestDescriptor rootTestDescriptor,
EngineExecutionListener engineExecutionListener,
ConfigurationParameters configurationParameters) |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractTestDescriptor
Abstract base implementation of
TestDescriptor that may be used by
custom TestEngines. |
class |
EngineDescriptor
|
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Set<TestDescriptor> |
AbstractTestDescriptor.children
The synchronized set of children associated with this
TestDescriptor. |
| Modifier and Type | Method and Description |
|---|---|
java.util.Optional<? extends TestDescriptor> |
AbstractTestDescriptor.findByUniqueId(UniqueId uniqueId) |
java.util.Set<? extends TestDescriptor> |
AbstractTestDescriptor.getChildren() |
java.util.Optional<TestDescriptor> |
AbstractTestDescriptor.getParent() |
| Modifier and Type | Method and Description |
|---|---|
void |
AbstractTestDescriptor.addChild(TestDescriptor child) |
void |
AbstractTestDescriptor.removeChild(TestDescriptor child) |
void |
AbstractTestDescriptor.setParent(TestDescriptor parent) |
| Modifier and Type | Method and Description |
|---|---|
void |
Node.DynamicTestExecutor.execute(TestDescriptor testDescriptor)
Submit a dynamic test descriptor for immediate execution.
|