| 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.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.platform.launcher.core |
Core support classes for the
Launcher
including the LauncherFactory
and the LauncherDiscoveryRequestBuilder. |
| org.junit.platform.testkit.engine |
Test Kit for testing the execution of a
TestEngine
running on the JUnit Platform. |
| 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.
|
| org.junit.vintage.engine.execution |
Internal classes for test execution 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 |
|---|---|
(package private) class |
AbstractExtensionContext<T extends TestDescriptor> |
| Modifier and Type | Field and Description |
|---|---|
private T |
AbstractExtensionContext.testDescriptor |
| Modifier and Type | Method and Description |
|---|---|
private java.util.Optional<TestDescriptor> |
TestTemplateTestDescriptor.createInvocationTestDescriptor(TestTemplateInvocationContext invocationContext,
int index) |
| Modifier and Type | Class and Description |
|---|---|
(package private) class |
AbstractOrderingVisitor<PARENT extends TestDescriptor,CHILD extends TestDescriptor,WRAPPER extends AbstractAnnotatedDescriptorWrapper<?>>
Abstract base class for visitors that
order children nodes.
|
(package private) class |
AbstractOrderingVisitor<PARENT extends TestDescriptor,CHILD extends TestDescriptor,WRAPPER extends AbstractAnnotatedDescriptorWrapper<?>>
Abstract base class for visitors that
order children nodes.
|
| Modifier and Type | Field and Description |
|---|---|
private TestDescriptor |
AbstractAnnotatedDescriptorWrapper.testDescriptor |
| Modifier and Type | Method and Description |
|---|---|
protected abstract TestDescriptor |
MethodSelectorResolver.MethodType.createTestDescriptor(UniqueId uniqueId,
java.lang.Class<?> testClass,
java.lang.reflect.Method method,
JupiterConfiguration configuration) |
(package private) TestDescriptor |
AbstractAnnotatedDescriptorWrapper.getTestDescriptor() |
| Modifier and Type | Method and Description |
|---|---|
private java.util.Optional<TestDescriptor> |
MethodSelectorResolver.MethodType.resolve(java.util.List<java.lang.Class<?>> enclosingClasses,
java.lang.Class<?> testClass,
java.lang.reflect.Method method,
SelectorResolver.Context context,
JupiterConfiguration configuration) |
private java.util.Optional<TestDescriptor> |
MethodSelectorResolver.MethodType.resolveUniqueIdIntoTestDescriptor(UniqueId uniqueId,
SelectorResolver.Context context,
JupiterConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
private UniqueId |
MethodSelectorResolver.MethodType.createUniqueId(java.lang.reflect.Method method,
TestDescriptor parent) |
protected void |
AbstractOrderingVisitor.doWithMatchingDescriptor(java.lang.Class<PARENT> parentTestDescriptorType,
TestDescriptor testDescriptor,
java.util.function.Consumer<PARENT> action,
java.util.function.Function<PARENT,java.lang.String> errorMessageBuilder) |
private java.util.function.Supplier<java.util.Set<? extends DiscoverySelector>> |
MethodSelectorResolver.expansionCallback(TestDescriptor testDescriptor) |
private ClassTestDescriptor |
ClassSelectorResolver.newClassTestDescriptor(TestDescriptor parent,
java.lang.Class<?> testClass) |
private NestedClassTestDescriptor |
ClassSelectorResolver.newNestedClassTestDescriptor(TestDescriptor parent,
java.lang.Class<?> testClass) |
protected void |
AbstractOrderingVisitor.orderChildrenTestDescriptors(TestDescriptor parentTestDescriptor,
java.lang.Class<CHILD> matchingChildrenType,
java.util.function.Function<CHILD,WRAPPER> descriptorWrapperFactory,
AbstractOrderingVisitor.DescriptorWrapperOrderer descriptorWrapperOrderer) |
void |
ClassOrderingVisitor.visit(TestDescriptor testDescriptor) |
void |
MethodOrderingVisitor.visit(TestDescriptor testDescriptor) |
| Modifier and Type | Method and Description |
|---|---|
private SelectorResolver.Resolution |
MethodSelectorResolver.resolve(SelectorResolver.Context context,
java.util.List<java.lang.Class<?>> enclosingClasses,
java.lang.Class<?> testClass,
java.util.function.Supplier<java.lang.reflect.Method> methodSupplier,
java.util.function.BiFunction<TestDescriptor,java.util.function.Supplier<java.util.Set<? extends DiscoverySelector>>,SelectorResolver.Match> matchFactory) |
| Constructor and Description |
|---|
AbstractAnnotatedDescriptorWrapper(TestDescriptor testDescriptor,
E annotatedElement) |
| Modifier and Type | Field and Description |
|---|---|
private TestDescriptor |
ExecutionRequest.rootTestDescriptor |
| 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.
|
default java.util.Set<? extends TestDescriptor> |
TestDescriptor.getAncestors()
Get the immutable set of all ancestors of this descriptor.
|
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)
is a test or
may potentially register
tests dynamically.
|
static ExecutionRequest |
ExecutionRequest.create(TestDescriptor rootTestDescriptor,
EngineExecutionListener engineExecutionListener,
ConfigurationParameters configurationParameters)
Factory for creating an execution request.
|
default void |
EngineExecutionListener.dynamicTestRegistered(TestDescriptor testDescriptor)
Must be called when a new, dynamic
TestDescriptor has been
registered. |
default 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.
|
default 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.
|
default 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.
|
default 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 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 |
|---|---|
private TestDescriptor |
AbstractTestDescriptor.parent |
| 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 | Class and 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. |
private static class |
EngineDiscoveryRequestResolver.DefaultInitializationContext<T extends TestDescriptor> |
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 | Field and Description |
|---|---|
private TestDescriptor |
EngineDiscoveryRequestResolution.engineDescriptor |
private T |
EngineDiscoveryRequestResolver.DefaultInitializationContext.engineDescriptor |
private TestDescriptor |
EngineDiscoveryRequestResolution.DefaultContext.parent |
private TestDescriptor |
SelectorResolver.Match.testDescriptor |
| Modifier and Type | Method and Description |
|---|---|
<T extends TestDescriptor> |
EngineDiscoveryRequestResolution.DefaultContext.addToParent(java.util.function.Function<TestDescriptor,java.util.Optional<T>> creator) |
<T extends TestDescriptor> |
SelectorResolver.Context.addToParent(java.util.function.Function<TestDescriptor,java.util.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> |
EngineDiscoveryRequestResolution.DefaultContext.addToParent(java.util.function.Supplier<DiscoverySelector> parentSelectorSupplier,
java.util.function.Function<TestDescriptor,java.util.Optional<T>> creator) |
<T extends TestDescriptor> |
SelectorResolver.Context.addToParent(java.util.function.Supplier<DiscoverySelector> parentSelectorSupplier,
java.util.function.Function<TestDescriptor,java.util.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. |
private <T extends TestDescriptor> |
EngineDiscoveryRequestResolution.DefaultContext.createAndAdd(TestDescriptor parent,
java.util.function.Function<TestDescriptor,java.util.Optional<T>> creator) |
| Modifier and Type | Method and Description |
|---|---|
TestDescriptor |
SelectorResolver.Match.getTestDescriptor()
Get the contained
TestDescriptor. |
| Modifier and Type | Method and Description |
|---|---|
java.util.Optional<TestDescriptor> |
EngineDiscoveryRequestResolution.DefaultContext.resolve(DiscoverySelector selector) |
java.util.Optional<TestDescriptor> |
SelectorResolver.Context.resolve(DiscoverySelector selector)
Resolve the supplied
TestDescriptor, if possible. |
| Modifier and Type | Method and Description |
|---|---|
private <T extends TestDescriptor> |
EngineDiscoveryRequestResolution.DefaultContext.createAndAdd(TestDescriptor parent,
java.util.function.Function<TestDescriptor,java.util.Optional<T>> creator) |
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,
java.util.function.Supplier<java.util.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,
java.util.function.Supplier<java.util.Set<? extends DiscoverySelector>> childSelectorsSupplier)
Factory for creating a partial match with potential children.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends TestDescriptor> |
EngineDiscoveryRequestResolution.DefaultContext.addToParent(java.util.function.Function<TestDescriptor,java.util.Optional<T>> creator) |
<T extends TestDescriptor> |
SelectorResolver.Context.addToParent(java.util.function.Function<TestDescriptor,java.util.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> |
EngineDiscoveryRequestResolution.DefaultContext.addToParent(java.util.function.Supplier<DiscoverySelector> parentSelectorSupplier,
java.util.function.Function<TestDescriptor,java.util.Optional<T>> creator) |
<T extends TestDescriptor> |
SelectorResolver.Context.addToParent(java.util.function.Supplier<DiscoverySelector> parentSelectorSupplier,
java.util.function.Function<TestDescriptor,java.util.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. |
private <T extends TestDescriptor> |
EngineDiscoveryRequestResolution.DefaultContext.createAndAdd(TestDescriptor parent,
java.util.function.Function<TestDescriptor,java.util.Optional<T>> creator) |
| Constructor and Description |
|---|
DefaultContext(TestDescriptor parent) |
EngineDiscoveryRequestResolution(EngineDiscoveryRequest request,
TestDescriptor engineDescriptor,
java.util.List<SelectorResolver> resolvers,
java.util.List<TestDescriptor.Visitor> visitors) |
Match(TestDescriptor testDescriptor,
java.util.function.Supplier<java.util.Set<? extends DiscoverySelector>> childSelectorsSupplier,
SelectorResolver.Match.Type type) |
| Modifier and Type | Field and Description |
|---|---|
private TestDescriptor |
NodeTestTask.testDescriptor |
| Modifier and Type | Field and Description |
|---|---|
private java.util.Map<TestDescriptor,Node.ExecutionMode> |
NodeExecutionAdvisor.forcedDescendantExecutionModeByTestDescriptor |
private java.util.Map<TestDescriptor,ResourceLock> |
NodeExecutionAdvisor.resourceLocksByTestDescriptor |
| Modifier and Type | Method and Description |
|---|---|
(package private) static <C extends EngineExecutionContext> |
NodeUtils.asNode(TestDescriptor testDescriptor) |
private void |
NodeTreeWalker.doForChildrenRecursively(TestDescriptor parent,
java.util.function.Consumer<TestDescriptor> consumer) |
void |
Node.DynamicTestExecutor.execute(TestDescriptor testDescriptor)
Submit a dynamic test descriptor for immediate execution.
|
void |
NodeTestTask.DefaultDynamicTestExecutor.execute(TestDescriptor testDescriptor) |
java.util.concurrent.Future<?> |
Node.DynamicTestExecutor.execute(TestDescriptor testDescriptor,
EngineExecutionListener executionListener)
Submit a dynamic test descriptor for immediate execution with a
custom, potentially no-op, execution listener.
|
java.util.concurrent.Future<?> |
NodeTestTask.DefaultDynamicTestExecutor.execute(TestDescriptor testDescriptor,
EngineExecutionListener executionListener) |
(package private) void |
NodeExecutionAdvisor.forceDescendantExecutionMode(TestDescriptor testDescriptor,
Node.ExecutionMode executionMode) |
private void |
NodeTreeWalker.forceDescendantExecutionModeRecursively(NodeExecutionAdvisor advisor,
TestDescriptor testDescriptor) |
private java.util.Set<ExclusiveResource> |
NodeTreeWalker.getExclusiveResources(TestDescriptor testDescriptor) |
(package private) java.util.Optional<Node.ExecutionMode> |
NodeExecutionAdvisor.getForcedExecutionMode(TestDescriptor testDescriptor) |
(package private) ResourceLock |
NodeExecutionAdvisor.getResourceLock(TestDescriptor testDescriptor) |
private java.util.Optional<Node.ExecutionMode> |
NodeExecutionAdvisor.lookupExecutionModeForcedByAncestor(TestDescriptor testDescriptor) |
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.
|
(package private) void |
NodeExecutionAdvisor.useResourceLock(TestDescriptor testDescriptor,
ResourceLock resourceLock) |
(package private) NodeExecutionAdvisor |
NodeTreeWalker.walk(TestDescriptor rootDescriptor) |
private void |
NodeTreeWalker.walk(TestDescriptor globalLockDescriptor,
TestDescriptor testDescriptor,
NodeExecutionAdvisor advisor) |
| Modifier and Type | Method and Description |
|---|---|
private void |
NodeTreeWalker.doForChildrenRecursively(TestDescriptor parent,
java.util.function.Consumer<TestDescriptor> consumer) |
| Constructor and Description |
|---|
NodeTestTask(NodeTestTaskContext taskContext,
TestDescriptor testDescriptor) |
NodeTestTask(NodeTestTaskContext taskContext,
TestDescriptor testDescriptor,
java.lang.Runnable finalizer) |
| 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(java.util.Collection<TestDescriptor> engineDescriptors,
ConfigurationParameters configurationParameters)
Construct a new
TestPlan from the supplied collection of
TestDescriptors. |
| Modifier and Type | Class and Description |
|---|---|
(package private) class |
EngineDiscoveryErrorDescriptor
Represents an error thrown by a
TestEngine
during discovery. |
| Modifier and Type | Field and Description |
|---|---|
private TestDescriptor |
OutcomeDelayingEngineExecutionListener.engineDescriptor |
| Modifier and Type | Field and Description |
|---|---|
private java.util.Map<TestEngine,TestDescriptor> |
LauncherDiscoveryResult.testEngineDescriptors |
| Modifier and Type | Method and Description |
|---|---|
private TestDescriptor |
EngineDiscoveryOrchestrator.discoverEngineRoot(TestEngine testEngine,
LauncherDiscoveryRequest request,
LauncherDiscoveryListener listener,
java.util.function.Function<java.lang.String,UniqueId> uniqueIdCreator) |
TestDescriptor |
LauncherDiscoveryResult.getEngineTestDescriptor(TestEngine testEngine) |
| Modifier and Type | Method and Description |
|---|---|
private java.util.Map<TestEngine,TestDescriptor> |
EngineDiscoveryOrchestrator.discover(LauncherDiscoveryRequest request,
EngineDiscoveryOrchestrator.Phase phase,
java.util.function.Function<java.lang.String,UniqueId> uniqueIdCreator) |
private java.util.Map<TestEngine,TestDescriptor> |
EngineDiscoveryOrchestrator.discoverSafely(LauncherDiscoveryRequest request,
EngineDiscoveryOrchestrator.Phase phase,
LauncherDiscoveryListener listener,
java.util.function.Function<java.lang.String,UniqueId> uniqueIdCreator) |
(package private) java.util.Collection<TestDescriptor> |
LauncherDiscoveryResult.getEngineTestDescriptors() |
private java.util.Map<TestEngine,TestDescriptor> |
LauncherDiscoveryResult.retainEngines(java.util.function.Predicate<? super TestDescriptor> predicate) |
| Modifier and Type | Method and Description |
|---|---|
void |
CompositeEngineExecutionListener.dynamicTestRegistered(TestDescriptor testDescriptor) |
void |
DelegatingEngineExecutionListener.dynamicTestRegistered(TestDescriptor testDescriptor) |
void |
ExecutionListenerAdapter.dynamicTestRegistered(TestDescriptor testDescriptor) |
private void |
EngineExecutionOrchestrator.execute(TestDescriptor engineDescriptor,
EngineExecutionListener listener,
ConfigurationParameters configurationParameters,
TestEngine testEngine) |
void |
CompositeEngineExecutionListener.executionFinished(TestDescriptor testDescriptor,
TestExecutionResult testExecutionResult) |
void |
DelegatingEngineExecutionListener.executionFinished(TestDescriptor testDescriptor,
TestExecutionResult testExecutionResult) |
void |
ExecutionListenerAdapter.executionFinished(TestDescriptor testDescriptor,
TestExecutionResult testExecutionResult) |
void |
OutcomeDelayingEngineExecutionListener.executionFinished(TestDescriptor testDescriptor,
TestExecutionResult executionResult) |
void |
StackTracePruningEngineExecutionListener.executionFinished(TestDescriptor testDescriptor,
TestExecutionResult testExecutionResult) |
void |
CompositeEngineExecutionListener.executionSkipped(TestDescriptor testDescriptor,
java.lang.String reason) |
void |
DelegatingEngineExecutionListener.executionSkipped(TestDescriptor testDescriptor,
java.lang.String reason) |
void |
ExecutionListenerAdapter.executionSkipped(TestDescriptor testDescriptor,
java.lang.String reason) |
void |
OutcomeDelayingEngineExecutionListener.executionSkipped(TestDescriptor testDescriptor,
java.lang.String reason) |
void |
CompositeEngineExecutionListener.executionStarted(TestDescriptor testDescriptor) |
void |
DelegatingEngineExecutionListener.executionStarted(TestDescriptor testDescriptor) |
void |
ExecutionListenerAdapter.executionStarted(TestDescriptor testDescriptor) |
void |
OutcomeDelayingEngineExecutionListener.executionStarted(TestDescriptor testDescriptor) |
private java.util.Optional<java.lang.String> |
EngineDiscoveryResultValidator.getCyclicGraphInfo(TestDescriptor root) |
private static java.util.List<java.lang.String> |
StackTracePruningEngineExecutionListener.getTestClassNames(TestDescriptor testDescriptor) |
private TestIdentifier |
ExecutionListenerAdapter.getTestIdentifier(TestDescriptor testDescriptor) |
private boolean |
EngineDiscoveryOrchestrator.isExcluded(TestDescriptor descriptor,
FilterResult filterResult) |
private void |
EngineDiscoveryOrchestrator.populateExclusionReasonInMap(java.util.Optional<java.lang.String> reason,
TestDescriptor testDescriptor,
java.util.Map<java.lang.String,java.util.List<TestDescriptor>> excludedTestDescriptorsByReason) |
void |
CompositeEngineExecutionListener.reportingEntryPublished(TestDescriptor testDescriptor,
ReportEntry entry) |
void |
DelegatingEngineExecutionListener.reportingEntryPublished(TestDescriptor testDescriptor,
ReportEntry entry) |
void |
ExecutionListenerAdapter.reportingEntryPublished(TestDescriptor testDescriptor,
ReportEntry entry) |
(package private) void |
EngineDiscoveryResultValidator.validate(TestEngine testEngine,
TestDescriptor root)
Perform common validation checks.
|
| Modifier and Type | Method and Description |
|---|---|
private void |
EngineDiscoveryOrchestrator.acceptInAllTestEngines(java.util.Map<TestEngine,TestDescriptor> testEngineDescriptors,
TestDescriptor.Visitor visitor) |
private void |
EngineDiscoveryOrchestrator.applyPostDiscoveryFilters(java.util.Map<TestEngine,TestDescriptor> testEngineDescriptors,
java.util.List<PostDiscoveryFilter> filters) |
private void |
EngineDiscoveryOrchestrator.logTestDescriptorExclusionReasons(java.util.Map<java.lang.String,java.util.List<TestDescriptor>> excludedTestDescriptorsByReason) |
private void |
EngineDiscoveryOrchestrator.populateExclusionReasonInMap(java.util.Optional<java.lang.String> reason,
TestDescriptor testDescriptor,
java.util.Map<java.lang.String,java.util.List<TestDescriptor>> excludedTestDescriptorsByReason) |
private void |
EngineDiscoveryOrchestrator.prune(java.util.Map<TestEngine,TestDescriptor> testEngineDescriptors)
Prune all branches in the tree of
TestDescriptors
that do not have executable tests. |
private java.util.Map<TestEngine,TestDescriptor> |
LauncherDiscoveryResult.retainEngines(java.util.function.Predicate<? super TestDescriptor> predicate) |
LauncherDiscoveryResult |
LauncherDiscoveryResult.withRetainedEngines(java.util.function.Predicate<? super TestDescriptor> predicate) |
| Constructor and Description |
|---|
OutcomeDelayingEngineExecutionListener(EngineExecutionListener delegate,
TestDescriptor engineDescriptor) |
| Constructor and Description |
|---|
LauncherDiscoveryResult(java.util.Map<TestEngine,TestDescriptor> testEngineDescriptors,
ConfigurationParameters configurationParameters) |
| Modifier and Type | Field and Description |
|---|---|
private TestDescriptor |
Event.testDescriptor |
private TestDescriptor |
Execution.testDescriptor |
| Modifier and Type | Method and Description |
|---|---|
TestDescriptor |
Event.getTestDescriptor()
Get the
TestDescriptor associated with this Event. |
TestDescriptor |
Execution.getTestDescriptor()
Get the
TestDescriptor for this Execution. |
| Modifier and Type | Method and Description |
|---|---|
static Event |
Event.dynamicTestRegistered(TestDescriptor testDescriptor)
Create an
Event for the dynamic registration of the
supplied TestDescriptor. |
void |
ExecutionRecorder.dynamicTestRegistered(TestDescriptor testDescriptor)
Record an
Event for a dynamically registered container
or test. |
static Event |
Event.executionFinished(TestDescriptor testDescriptor,
TestExecutionResult result)
|
void |
ExecutionRecorder.executionFinished(TestDescriptor testDescriptor,
TestExecutionResult testExecutionResult)
Record an
Event for a container or test that completed
with the provided TestExecutionResult. |
static Event |
Event.executionSkipped(TestDescriptor testDescriptor,
java.lang.String reason)
|
void |
ExecutionRecorder.executionSkipped(TestDescriptor testDescriptor,
java.lang.String reason)
Record an
Event for a container or test that was skipped. |
static Event |
Event.executionStarted(TestDescriptor testDescriptor)
Create a started
Event for the supplied
TestDescriptor. |
void |
ExecutionRecorder.executionStarted(TestDescriptor testDescriptor)
Record an
Event for a container or test that started. |
static Execution |
Execution.finished(TestDescriptor testDescriptor,
java.time.Instant startInstant,
java.time.Instant endInstant,
TestExecutionResult executionResult)
Create a new instance of an
Execution that finished with the
provided TestExecutionResult. |
static Event |
Event.reportingEntryPublished(TestDescriptor testDescriptor,
ReportEntry entry)
|
void |
ExecutionRecorder.reportingEntryPublished(TestDescriptor testDescriptor,
ReportEntry entry)
Record an
Event for a published ReportEntry. |
static Execution |
Execution.skipped(TestDescriptor testDescriptor,
java.time.Instant startInstant,
java.time.Instant endInstant,
java.lang.String skipReason)
Create a new instance of an
Execution that was skipped with the
provided skipReason. |
| Modifier and Type | Method and Description |
|---|---|
static java.util.function.Predicate<Event> |
Event.byTestDescriptor(java.util.function.Predicate<? super TestDescriptor> testDescriptorPredicate)
|
private static java.util.stream.Stream<Event> |
EngineExecutionResults.filterEvents(java.util.List<Event> events,
java.util.function.Predicate<? super TestDescriptor> predicate)
Filter the supplied list of events using the supplied predicate.
|
| Constructor and Description |
|---|
Event(EventType type,
TestDescriptor testDescriptor,
java.lang.Object payload)
Construct an
Event with the supplied arguments. |
Execution(TestDescriptor testDescriptor,
java.time.Instant startInstant,
java.time.Instant endInstant,
TerminationInfo terminationInfo) |
| Modifier and Type | Method and Description |
|---|---|
TestDescriptor |
VintageTestEngine.discover(EngineDiscoveryRequest discoveryRequest,
UniqueId uniqueId) |
| Modifier and Type | Class and Description |
|---|---|
class |
RunnerTestDescriptor |
class |
VintageEngineDescriptor |
class |
VintageTestDescriptor |
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<TestDescriptor> |
VintageEngineDescriptor.getModifiableChildren() |
| Modifier and Type | Field and Description |
|---|---|
private static EngineDiscoveryRequestResolver<TestDescriptor> |
VintageDiscoverer.resolver |
| Modifier and Type | Method and Description |
|---|---|
private java.util.Optional<RunnerTestDescriptor> |
MethodSelectorResolver.addFilter(TestDescriptor parent,
java.util.function.Function<RunnerTestDescriptor,org.junit.runner.manipulation.Filter> filterCreator) |
private RunnerTestDescriptor |
ClassSelectorResolver.createRunnerTestDescriptor(TestDescriptor parent,
java.lang.Class<?> testClass,
org.junit.runner.Runner runner) |
| Modifier and Type | Method and Description |
|---|---|
private java.util.Set<org.junit.runner.Description> |
UniqueIdFilter.determineDescendants(java.util.Optional<? extends TestDescriptor> identifiedTestDescriptor) |
private java.util.Deque<org.junit.runner.Description> |
UniqueIdFilter.determinePath(RunnerTestDescriptor runnerTestDescriptor,
java.util.Optional<? extends TestDescriptor> identifiedTestDescriptor) |
| Modifier and Type | Field and Description |
|---|---|
private java.util.Map<TestDescriptor,java.util.List<TestExecutionResult>> |
TestRun.executionResults |
private java.util.Set<TestDescriptor> |
TestRun.finishedDescriptors |
private java.util.Map<TestDescriptor,EventType> |
TestRun.inProgressDescriptors |
private java.util.Set<TestDescriptor> |
TestRun.runnerDescendants |
private java.util.Set<TestDescriptor> |
TestRun.skippedDescriptors |
private java.util.Set<TestDescriptor> |
TestRun.startedDescriptors |
| Modifier and Type | Method and Description |
|---|---|
private TestDescriptor |
RunListenerAdapter.findParent(org.junit.runner.Description description,
java.util.function.Function<org.junit.runner.Description,java.util.Optional<VintageTestDescriptor>> lookup) |
private TestDescriptor |
RunListenerAdapter.lookupOrRegisterCurrentTestDescriptor(org.junit.runner.Description description) |
private TestDescriptor |
RunListenerAdapter.lookupOrRegisterNextTestDescriptor(org.junit.runner.Description description) |
private TestDescriptor |
RunListenerAdapter.lookupOrRegisterTestDescriptor(org.junit.runner.Description description,
java.util.function.Function<org.junit.runner.Description,java.util.Optional<VintageTestDescriptor>> lookup) |
| Modifier and Type | Method and Description |
|---|---|
(package private) java.util.Collection<TestDescriptor> |
TestRun.getInProgressTestDescriptorsWithSyntheticStartEvents() |
| Modifier and Type | Method and Description |
|---|---|
private boolean |
RunListenerAdapter.canFinish(TestDescriptor testDescriptor) |
private boolean |
RunListenerAdapter.canStart(TestDescriptor testDescriptor) |
private java.util.Optional<java.lang.String> |
RunListenerAdapter.determineReasonForIgnoredTest(TestDescriptor testDescriptor,
org.junit.runner.Description description) |
private void |
RunListenerAdapter.dynamicTestRegistered(TestDescriptor testDescriptor) |
private void |
RunListenerAdapter.fireExecutionFinished(TestDescriptor testDescriptor) |
private void |
RunListenerAdapter.fireExecutionFinishedForInProgressNonAncestorTestDescriptorsWithSyntheticStartEvents(TestDescriptor testDescriptor) |
private void |
RunListenerAdapter.fireExecutionSkipped(TestDescriptor testDescriptor,
java.lang.String reason) |
private void |
RunListenerAdapter.fireExecutionStarted(TestDescriptor testDescriptor,
EventType eventType) |
(package private) TestExecutionResult |
TestRun.getStoredResultOrSuccessful(TestDescriptor testDescriptor) |
private void |
RunListenerAdapter.handleFailure(org.junit.runner.notification.Failure failure,
java.util.function.Function<java.lang.Throwable,TestExecutionResult> resultCreator,
TestDescriptor testDescriptor) |
(package private) boolean |
TestRun.hasSyntheticStartEvent(TestDescriptor testDescriptor) |
private boolean |
RunListenerAdapter.isAncestor(TestDescriptor candidate,
TestDescriptor testDescriptor) |
(package private) boolean |
TestRun.isDescendantOfRunnerTestDescriptor(TestDescriptor testDescriptor) |
(package private) boolean |
TestRun.isFinished(TestDescriptor testDescriptor) |
(package private) boolean |
TestRun.isFinishedOrSkipped(TestDescriptor testDescriptor) |
(package private) boolean |
TestRun.isNotFinished(TestDescriptor testDescriptor) |
(package private) boolean |
TestRun.isNotSkipped(TestDescriptor testDescriptor) |
(package private) boolean |
TestRun.isNotStarted(TestDescriptor testDescriptor) |
(package private) boolean |
TestRun.isSkipped(TestDescriptor testDescriptor) |
(package private) void |
TestRun.markFinished(TestDescriptor testDescriptor) |
(package private) void |
TestRun.markSkipped(TestDescriptor testDescriptor) |
(package private) void |
TestRun.markStarted(TestDescriptor testDescriptor,
EventType eventType) |
private void |
RunListenerAdapter.reportContainerFinished(TestDescriptor containerTestDescriptor) |
(package private) void |
TestRun.storeResult(TestDescriptor testDescriptor,
TestExecutionResult result) |
private void |
RunListenerAdapter.testFinished(TestDescriptor descriptor) |
private void |
RunListenerAdapter.testIgnored(TestDescriptor testDescriptor,
java.lang.String reason) |
private void |
RunListenerAdapter.testStarted(TestDescriptor testDescriptor,
EventType eventType) |
| Modifier and Type | Method and Description |
|---|---|
(package private) boolean |
TestRun.areAllFinishedOrSkipped(java.util.Set<? extends TestDescriptor> testDescriptors) |
private void |
RunListenerAdapter.fireExecutionStartedIncludingUnstartedAncestors(java.util.Optional<TestDescriptor> parent) |