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.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.discovery |
Configurable test discovery implementation that can be reused by different test engines.
|
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 |
ClassBasedTestDescriptor |
TestDescriptor for tests based on Java classes. |
class |
ClassTestDescriptor |
TestDescriptor for tests based on Java classes. |
class |
JupiterEngineDescriptor |
|
class |
JupiterTestDescriptor |
|
class |
MethodBasedTestDescriptor |
Base class for
TestDescriptors based on Java methods. |
class |
NestedClassTestDescriptor |
TestDescriptor for tests based on nested (but not static) Java classes. |
class |
TestFactoryTestDescriptor |
TestDescriptor for
@TestFactory methods. |
class |
TestMethodTestDescriptor |
TestDescriptor for @Test methods. |
class |
TestTemplateInvocationTestDescriptor |
TestDescriptor for a @TestTemplate
invocation. |
class |
TestTemplateTestDescriptor |
TestDescriptor for @TestTemplate
methods. |
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 |
---|---|---|
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 | 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)
is a test or
may potentially register
tests dynamically.
|
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 to the reporting infrastructure — for example:
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 Set<TestDescriptor> |
AbstractTestDescriptor.children |
The synchronized set of children associated with this
TestDescriptor . |
Modifier and Type | Method | Description |
---|---|---|
Optional<? extends TestDescriptor> |
AbstractTestDescriptor.findByUniqueId(UniqueId uniqueId) |
|
Set<? extends TestDescriptor> |
AbstractTestDescriptor.getChildren() |
|
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 | Class | Description |
---|---|---|
class |
EngineDiscoveryRequestResolver<T extends TestDescriptor> |
Configurable test discovery implementation based on
SelectorResolver
and TestDescriptor.Visitor that can be reused by different
TestEngines . |
static class |
EngineDiscoveryRequestResolver.Builder<T extends TestDescriptor> |
Builder for
EngineDiscoveryRequestResolver . |
static interface |
EngineDiscoveryRequestResolver.InitializationContext<T extends TestDescriptor> |
The initialization context for creating resolvers and visitors that depend
on the
EngineDiscoveryRequest to be resolved or the engine
descriptor that will be used to collect the results. |
Modifier and Type | Method | Description |
---|---|---|
<T extends TestDescriptor> |
SelectorResolver.Context.addToParent(Function<TestDescriptor,Optional<T>> creator) |
Add a
TestDescriptor to an unspecified parent, usually the
engine descriptor, by applying the supplied Function to the
new parent. |
<T extends TestDescriptor> |
SelectorResolver.Context.addToParent(Supplier<DiscoverySelector> parentSelectorSupplier,
Function<TestDescriptor,Optional<T>> creator) |
Add a
TestDescriptor to a parent, specified by the DiscoverySelector returned by the supplied Supplier , by
applying the supplied Function to the new parent. |
static <T extends TestDescriptor> |
EngineDiscoveryRequestResolver.builder() |
Create a new
EngineDiscoveryRequestResolver.Builder for creating a EngineDiscoveryRequestResolver . |
Modifier and Type | Method | Description |
---|---|---|
TestDescriptor |
SelectorResolver.Match.getTestDescriptor() |
Get the contained
TestDescriptor . |
Modifier and Type | Method | Description |
---|---|---|
Optional<TestDescriptor> |
SelectorResolver.Context.resolve(DiscoverySelector selector) |
Resolve the supplied
TestDescriptor , if possible. |
Modifier and Type | Method | Description |
---|---|---|
static SelectorResolver.Match |
SelectorResolver.Match.exact(TestDescriptor testDescriptor) |
Factory for creating an exact match without any children.
|
static SelectorResolver.Match |
SelectorResolver.Match.exact(TestDescriptor testDescriptor,
Supplier<Set<? extends DiscoverySelector>> childSelectorsSupplier) |
Factory for creating an exact match with potential children.
|
static SelectorResolver.Match |
SelectorResolver.Match.partial(TestDescriptor testDescriptor) |
Factory for creating a partial match without any children.
|
static SelectorResolver.Match |
SelectorResolver.Match.partial(TestDescriptor testDescriptor,
Supplier<Set<? extends DiscoverySelector>> childSelectorsSupplier) |
Factory for creating a partial match with potential children.
|
Modifier and Type | Method | Description |
---|---|---|
<T extends TestDescriptor> |
SelectorResolver.Context.addToParent(Function<TestDescriptor,Optional<T>> creator) |
Add a
TestDescriptor to an unspecified parent, usually the
engine descriptor, by applying the supplied Function to the
new parent. |
<T extends TestDescriptor> |
SelectorResolver.Context.addToParent(Supplier<DiscoverySelector> parentSelectorSupplier,
Function<TestDescriptor,Optional<T>> creator) |
Add a
TestDescriptor to a parent, specified by the DiscoverySelector returned by the supplied Supplier , by
applying the supplied Function to the new parent. |
Modifier and Type | Method | Description |
---|---|---|
void |
Node.DynamicTestExecutor.execute(TestDescriptor testDescriptor) |
Submit a dynamic test descriptor for immediate execution.
|
default void |
Node.nodeFinished(C context,
TestDescriptor testDescriptor,
TestExecutionResult result) |
Callback invoked when the execution of this node has finished.
|
default void |
Node.nodeSkipped(C context,
TestDescriptor testDescriptor,
Node.SkipResult result) |
Callback invoked when the execution of this node has been skipped.
|
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(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) |
Copyright © 2019. All rights reserved.