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.platform.launcher.core |
Core support classes for the
Launcher
including the LauncherFactory
and the LauncherDiscoveryRequestBuilder . |
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 | Method and Description |
---|---|
(package private) void |
DiscoveryFilterApplier.applyAllFilters(EngineDiscoveryRequest discoveryRequest,
TestDescriptor engineDescriptor)
Apply all filters.
|
private void |
DiscoveryFilterApplier.applyClassNameFilters(java.util.List<ClassNameFilter> classNameFilters,
TestDescriptor engineDescriptor) |
private void |
DiscoveryFilterApplier.applyPackageNameFilters(java.util.List<PackageNameFilter> packageNameFilters,
TestDescriptor engineDescriptor) |
Modifier and Type | Class and Description |
---|---|
(package private) class |
AbstractExtensionContext<T extends TestDescriptor> |
Modifier and Type | Class and Description |
---|---|
class |
ClassTestDescriptor
TestDescriptor for tests based on Java classes. |
(package private) class |
DynamicContainerTestDescriptor
TestDescriptor for a DynamicContainer . |
(package private) class |
DynamicTestTestDescriptor
TestDescriptor for a DynamicTest . |
class |
JupiterEngineDescriptor |
class |
JupiterTestDescriptor |
(package private) 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 tests based on Java methods. |
class |
TestTemplateInvocationTestDescriptor
TestDescriptor for a @TestTemplate
invocation. |
class |
TestTemplateTestDescriptor
TestDescriptor for @TestTemplate
methods. |
Modifier and Type | Field and Description |
---|---|
private T |
AbstractExtensionContext.testDescriptor |
Modifier and Type | Method and Description |
---|---|
private TestDescriptor |
TestTemplateTestDescriptor.createInvocationTestDescriptor(TestTemplateInvocationContext invocationContext,
int index) |
Modifier and Type | Method and Description |
---|---|
private void |
TestTemplateTestDescriptor.execute(Node.DynamicTestExecutor dynamicTestExecutor,
TestDescriptor testDescriptor) |
Modifier and Type | Field and Description |
---|---|
private TestDescriptor |
JavaElementsResolver.engineDescriptor |
Modifier and Type | Method and Description |
---|---|
private TestDescriptor |
AbstractMethodResolver.createTestDescriptor(TestDescriptor parent,
java.lang.reflect.Method method) |
protected abstract TestDescriptor |
AbstractMethodResolver.createTestDescriptor(UniqueId uniqueId,
java.lang.Class<?> testClass,
java.lang.reflect.Method method) |
protected TestDescriptor |
TestFactoryMethodResolver.createTestDescriptor(UniqueId uniqueId,
java.lang.Class<?> testClass,
java.lang.reflect.Method method) |
protected TestDescriptor |
TestMethodResolver.createTestDescriptor(UniqueId uniqueId,
java.lang.Class<?> testClass,
java.lang.reflect.Method method) |
protected TestDescriptor |
TestTemplateMethodResolver.createTestDescriptor(UniqueId uniqueId,
java.lang.Class<?> testClass,
java.lang.reflect.Method method) |
protected TestDescriptor |
NestedTestsResolver.resolveClass(java.lang.Class<?> testClass,
UniqueId uniqueId) |
protected TestDescriptor |
TestContainerResolver.resolveClass(java.lang.Class<?> testClass,
UniqueId uniqueId) |
Modifier and Type | Method and Description |
---|---|
private java.util.Optional<TestDescriptor> |
JavaElementsResolver.findTestDescriptorByUniqueId(UniqueId uniqueId) |
protected java.lang.Class<? extends TestDescriptor> |
NestedTestsResolver.requiredParentType() |
protected java.lang.Class<? extends TestDescriptor> |
TestContainerResolver.requiredParentType() |
private java.util.Set<TestDescriptor> |
JavaElementsResolver.resolve(java.lang.reflect.AnnotatedElement element,
TestDescriptor parent) |
private java.util.Set<TestDescriptor> |
JavaElementsResolver.resolveContainerWithChildren(java.lang.Class<?> containerClass,
java.util.Set<TestDescriptor> potentialParents) |
private java.util.Set<TestDescriptor> |
JavaElementsResolver.resolveContainerWithParents(java.lang.Class<?> testClass) |
java.util.Set<TestDescriptor> |
AbstractMethodResolver.resolveElement(java.lang.reflect.AnnotatedElement element,
TestDescriptor parent) |
java.util.Set<TestDescriptor> |
ElementResolver.resolveElement(java.lang.reflect.AnnotatedElement element,
TestDescriptor parent)
Return a set of
TestDescriptors that can be
resolved by this resolver. |
java.util.Set<TestDescriptor> |
TestContainerResolver.resolveElement(java.lang.reflect.AnnotatedElement element,
TestDescriptor parent) |
private java.util.Set<TestDescriptor> |
JavaElementsResolver.resolveForAllParents(java.lang.reflect.AnnotatedElement element,
java.util.Set<TestDescriptor> potentialParents) |
java.util.Optional<TestDescriptor> |
AbstractMethodResolver.resolveUniqueId(UniqueId.Segment segment,
TestDescriptor parent) |
java.util.Optional<TestDescriptor> |
ElementResolver.resolveUniqueId(UniqueId.Segment segment,
TestDescriptor parent)
Return an optional
TestDescriptor . |
java.util.Optional<TestDescriptor> |
TestContainerResolver.resolveUniqueId(UniqueId.Segment segment,
TestDescriptor parent) |
private java.util.Set<TestDescriptor> |
JavaElementsResolver.tryToResolveWithResolver(java.lang.reflect.AnnotatedElement element,
TestDescriptor parent,
ElementResolver resolver) |
Modifier and Type | Method and Description |
---|---|
private JavaElementsResolver |
DiscoverySelectorResolver.createJavaElementsResolver(TestDescriptor engineDescriptor) |
private TestDescriptor |
AbstractMethodResolver.createTestDescriptor(TestDescriptor parent,
java.lang.reflect.Method method) |
protected UniqueId |
TestContainerResolver.createUniqueId(java.lang.Class<?> testClass,
TestDescriptor parent) |
private UniqueId |
AbstractMethodResolver.createUniqueId(java.lang.reflect.Method method,
TestDescriptor parent) |
protected java.lang.String |
NestedTestsResolver.getClassName(TestDescriptor parent,
java.lang.String segmentValue) |
protected java.lang.String |
TestContainerResolver.getClassName(TestDescriptor parent,
java.lang.String segmentValue) |
private void |
DiscoverySelectorResolver.pruneTree(TestDescriptor rootDescriptor) |
private java.util.Set<TestDescriptor> |
JavaElementsResolver.resolve(java.lang.reflect.AnnotatedElement element,
TestDescriptor parent) |
private void |
JavaElementsResolver.resolveChildren(TestDescriptor descriptor) |
private void |
JavaElementsResolver.resolveContainedMethods(TestDescriptor containerDescriptor,
java.lang.Class<?> testClass) |
private void |
JavaElementsResolver.resolveContainedNestedClasses(TestDescriptor containerDescriptor,
java.lang.Class<?> clazz) |
java.util.Set<TestDescriptor> |
AbstractMethodResolver.resolveElement(java.lang.reflect.AnnotatedElement element,
TestDescriptor parent) |
java.util.Set<TestDescriptor> |
ElementResolver.resolveElement(java.lang.reflect.AnnotatedElement element,
TestDescriptor parent)
Return a set of
TestDescriptors that can be
resolved by this resolver. |
java.util.Set<TestDescriptor> |
TestContainerResolver.resolveElement(java.lang.reflect.AnnotatedElement element,
TestDescriptor parent) |
void |
DiscoverySelectorResolver.resolveSelectors(EngineDiscoveryRequest request,
TestDescriptor engineDescriptor) |
private int |
JavaElementsResolver.resolveUniqueId(TestDescriptor parent,
java.util.List<UniqueId.Segment> remainingSegments)
Attempt to resolve all segments for the supplied unique ID.
|
java.util.Optional<TestDescriptor> |
AbstractMethodResolver.resolveUniqueId(UniqueId.Segment segment,
TestDescriptor parent) |
java.util.Optional<TestDescriptor> |
ElementResolver.resolveUniqueId(UniqueId.Segment segment,
TestDescriptor parent)
Return an optional
TestDescriptor . |
java.util.Optional<TestDescriptor> |
TestContainerResolver.resolveUniqueId(UniqueId.Segment segment,
TestDescriptor parent) |
private java.util.Set<TestDescriptor> |
JavaElementsResolver.tryToResolveWithResolver(java.lang.reflect.AnnotatedElement element,
TestDescriptor parent,
ElementResolver resolver) |
Modifier and Type | Method and Description |
---|---|
private void |
JavaElementsResolver.logMultipleTestDescriptorsForSingleElement(java.lang.reflect.AnnotatedElement element,
java.util.Set<TestDescriptor> descriptors) |
private java.util.Set<TestDescriptor> |
JavaElementsResolver.resolveContainerWithChildren(java.lang.Class<?> containerClass,
java.util.Set<TestDescriptor> potentialParents) |
private java.util.Set<TestDescriptor> |
JavaElementsResolver.resolveForAllParents(java.lang.reflect.AnnotatedElement element,
java.util.Set<TestDescriptor> potentialParents) |
Constructor and Description |
---|
JavaElementsResolver(TestDescriptor engineDescriptor,
java.util.Set<ElementResolver> resolvers) |
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.
|
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 |
---|---|
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 | Field and Description |
---|---|
private TestDescriptor |
HierarchicalTestExecutor.rootTestDescriptor |
Modifier and Type | Method and Description |
---|---|
private Node<C> |
HierarchicalTestExecutor.asNode(TestDescriptor testDescriptor) |
void |
Node.DynamicTestExecutor.execute(TestDescriptor testDescriptor)
Submit a dynamic test descriptor for immediate execution.
|
private void |
HierarchicalTestExecutor.execute(TestDescriptor testDescriptor,
C parentContext,
ExecutionTracker tracker) |
(package private) void |
ExecutionTracker.markExecuted(TestDescriptor testDescriptor) |
(package private) boolean |
ExecutionTracker.wasAlreadyExecuted(TestDescriptor testDescriptor) |
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)
Construct a new
TestPlan from the supplied collection of
TestDescriptors . |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<TestEngine,TestDescriptor> |
Root.testEngineDescriptors |
Modifier and Type | Method and Description |
---|---|
(package private) TestDescriptor |
Root.getTestDescriptorFor(TestEngine testEngine) |
Modifier and Type | Method and Description |
---|---|
private java.util.Optional<TestDescriptor> |
DefaultLauncher.discoverEngineRoot(TestEngine testEngine,
LauncherDiscoveryRequest discoveryRequest) |
(package private) java.util.Collection<TestDescriptor> |
Root.getEngineDescriptors() |
Modifier and Type | Method and Description |
---|---|
(package private) void |
Root.add(TestEngine engine,
TestDescriptor testDescriptor)
Add an
engine 's root TestDescriptor . |
void |
ExecutionListenerAdapter.dynamicTestRegistered(TestDescriptor testDescriptor) |
void |
ExecutionListenerAdapter.executionFinished(TestDescriptor testDescriptor,
TestExecutionResult testExecutionResult) |
void |
ExecutionListenerAdapter.executionSkipped(TestDescriptor testDescriptor,
java.lang.String reason) |
void |
ExecutionListenerAdapter.executionStarted(TestDescriptor testDescriptor) |
private TestIdentifier |
ExecutionListenerAdapter.getTestIdentifier(TestDescriptor testDescriptor) |
private boolean |
Root.isExcluded(TestDescriptor descriptor,
Filter<TestDescriptor> postDiscoveryFilter) |
void |
ExecutionListenerAdapter.reportingEntryPublished(TestDescriptor testDescriptor,
ReportEntry entry) |
Modifier and Type | Method and Description |
---|---|
private boolean |
Root.isExcluded(TestDescriptor descriptor,
Filter<TestDescriptor> postDiscoveryFilter) |
Modifier and Type | Method and Description |
---|---|
TestDescriptor |
VintageTestEngine.discover(EngineDiscoveryRequest discoveryRequest,
UniqueId uniqueId) |
Modifier and Type | Method and Description |
---|---|
private void |
VintageTestEngine.executeAllChildren(RunnerExecutor runnerExecutor,
TestDescriptor engineTestDescriptor) |
Modifier and Type | Class and Description |
---|---|
class |
RunnerTestDescriptor |
class |
VintageTestDescriptor |
Modifier and Type | Method and Description |
---|---|
TestDescriptor |
VintageDiscoverer.discover(EngineDiscoveryRequest discoveryRequest,
UniqueId uniqueId) |
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.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) |
private TestDescriptor |
RunListenerAdapter.lookupOrRegisterTestDescriptor(org.junit.runner.Description description) |
Modifier and Type | Method and Description |
---|---|
private boolean |
RunListenerAdapter.canFinish(TestDescriptor testDescriptor) |
private boolean |
RunListenerAdapter.canStart(TestDescriptor testDescriptor) |
private void |
RunListenerAdapter.dynamicTestRegistered(TestDescriptor testDescriptor) |
private void |
RunListenerAdapter.fireExecutionFinished(TestDescriptor testDescriptor) |
private void |
RunListenerAdapter.fireExecutionSkipped(TestDescriptor testDescriptor,
java.lang.String reason) |
private void |
RunListenerAdapter.fireExecutionStarted(TestDescriptor testDescriptor) |
private void |
RunListenerAdapter.fireMissingContainerEvents(TestDescriptor testDescriptor) |
(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.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) |
(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) |
Modifier and Type | Method and Description |
---|---|
(package private) boolean |
TestRun.areAllFinishedOrSkipped(java.util.Set<? extends TestDescriptor> testDescriptors) |
private void |
RunListenerAdapter.fireExecutionFinishedIncludingAncestorsWithoutPendingChildren(java.util.Optional<TestDescriptor> parent) |
private void |
RunListenerAdapter.fireExecutionStartedIncludingUnstartedAncestors(java.util.Optional<TestDescriptor> parent) |