Package | Description |
---|---|
org.junit.jupiter.engine |
Core package for the JUnit Jupiter test engine.
|
org.junit.jupiter.engine.descriptor |
Test descriptors used within the JUnit Jupiter test engine.
|
org.junit.jupiter.engine.discovery |
Internal classes for test discovery within the JUnit Jupiter test engine.
|
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. |
org.junit.platform.launcher |
Public API for configuring and launching test plans.
|
org.junit.vintage.engine |
Core package for the JUnit Vintage test engine.
|
org.junit.vintage.engine.descriptor |
Test descriptors used within the JUnit Vintage test engine.
|
org.junit.vintage.engine.discovery |
Internal classes for test discovery within the JUnit Vintage test engine.
|
Modifier and Type | Method | Description |
---|---|---|
TestDescriptor |
JupiterTestEngine.discover(EngineDiscoveryRequest discoveryRequest,
UniqueId uniqueId) |
Modifier and Type | Class | Description |
---|---|---|
class |
ClassTestDescriptor |
TestDescriptor for tests based on Java classes. |
class |
JupiterEngineDescriptor |
|
class |
JupiterTestDescriptor |
|
class |
NestedClassTestDescriptor |
TestDescriptor for tests based on nested (but not static) Java classes. |
class |
TestFactoryTestDescriptor |
TestDescriptor for
@TestFactory methods. |
class |
TestMethodTestDescriptor |
TestDescriptor for tests based on Java methods. |
class |
TestTemplateInvocationTestDescriptor |
TestDescriptor for a @TestTemplate
invocation. |
class |
TestTemplateTestDescriptor |
TestDescriptor for @TestTemplate
methods. |
Modifier and Type | Method | Description |
---|---|---|
void |
DiscoverySelectorResolver.resolveSelectors(EngineDiscoveryRequest request,
TestDescriptor engineDescriptor) |
Modifier and Type | Method | 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 | 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 | 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 | Description |
---|---|
ExecutionRequest(TestDescriptor rootTestDescriptor,
EngineExecutionListener engineExecutionListener,
ConfigurationParameters configurationParameters) |
Modifier and Type | Class | Description |
---|---|---|
class |
AbstractTestDescriptor |
Abstract base implementation of
TestDescriptor that may be used by
custom TestEngines . |
class |
EngineDescriptor |
Modifier and Type | Field | Description |
---|---|---|
protected java.util.Set<TestDescriptor> |
AbstractTestDescriptor.children |
The synchronized set of children associated with this
TestDescriptor . |
Modifier and Type | Method | 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 | Description |
---|---|---|
void |
AbstractTestDescriptor.addChild(TestDescriptor child) |
|
void |
AbstractTestDescriptor.removeChild(TestDescriptor child) |
|
void |
AbstractTestDescriptor.setParent(TestDescriptor parent) |
Modifier and Type | Method | Description |
---|---|---|
void |
Node.DynamicTestExecutor.execute(TestDescriptor testDescriptor) |
Submit a dynamic test descriptor for immediate execution.
|
Modifier and Type | Method | Description |
---|---|---|
static TestIdentifier |
TestIdentifier.from(TestDescriptor testDescriptor) |
Factory for creating a new
TestIdentifier from a TestDescriptor . |
Modifier and Type | Method | Description |
---|---|---|
static TestPlan |
TestPlan.from(java.util.Collection<TestDescriptor> engineDescriptors) |
Construct a new
TestPlan from the supplied collection of
TestDescriptors . |
Modifier and Type | Method | Description |
---|---|---|
TestDescriptor |
VintageTestEngine.discover(EngineDiscoveryRequest discoveryRequest,
UniqueId uniqueId) |
Modifier and Type | Class | Description |
---|---|---|
class |
RunnerTestDescriptor |
|
class |
VintageTestDescriptor |
Modifier and Type | Method | Description |
---|---|---|
TestDescriptor |
VintageDiscoverer.discover(EngineDiscoveryRequest discoveryRequest,
UniqueId uniqueId) |