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 and Description |
---|---|
TestDescriptor |
JupiterTestEngine.discover(EngineDiscoveryRequest discoveryRequest,
UniqueId uniqueId) |
Modifier and Type | Class and 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 and Description |
---|---|
void |
DiscoverySelectorResolver.resolveSelectors(EngineDiscoveryRequest request,
TestDescriptor engineDescriptor) |
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 |
---|---|
Optional<? extends TestDescriptor> |
TestDescriptor.findByUniqueId(UniqueId uniqueId)
Find the descriptor with the supplied unique ID.
|
Set<? extends TestDescriptor> |
TestDescriptor.getChildren()
Get the immutable set of children of this descriptor.
|
default Set<? extends TestDescriptor> |
TestDescriptor.getDescendants()
Get the immutable set of all descendants of this descriptor.
|
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,
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 Set<TestDescriptor> |
AbstractTestDescriptor.children
The synchronized set of children associated with this
TestDescriptor . |
Modifier and Type | Method and Description |
---|---|
Optional<? extends TestDescriptor> |
AbstractTestDescriptor.findByUniqueId(UniqueId uniqueId) |
Set<? extends TestDescriptor> |
AbstractTestDescriptor.getChildren() |
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.
|
Modifier and Type | Method and Description |
---|---|
static TestIdentifier |
TestIdentifier.from(TestDescriptor testDescriptor)
Factory for creating a new
TestIdentifier from a TestDescriptor . |
Modifier and Type | Method and Description |
---|---|
static TestPlan |
TestPlan.from(Collection<TestDescriptor> engineDescriptors)
Construct a new
TestPlan from the supplied collection of
TestDescriptors . |
Modifier and Type | Method and Description |
---|---|
TestDescriptor |
VintageTestEngine.discover(EngineDiscoveryRequest discoveryRequest,
UniqueId uniqueId) |
Modifier and Type | Class and Description |
---|---|
class |
RunnerTestDescriptor |
class |
VintageTestDescriptor |
Modifier and Type | Method and Description |
---|---|
TestDescriptor |
VintageDiscoverer.discover(EngineDiscoveryRequest discoveryRequest,
UniqueId uniqueId) |