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.discovery | |
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.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.launcher.listeners.discovery |
Common
LauncherDiscoveryListener
implementations and factory methods. |
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 | Field and Description |
---|---|
private java.util.Set<UniqueId> |
DynamicDescendantFilter.allowed |
Modifier and Type | Method and Description |
---|---|
void |
DynamicDescendantFilter.allow(UniqueId uniqueId) |
private boolean |
DynamicDescendantFilter.isAllowed(UniqueId currentUniqueId,
UniqueId allowedUniqueId) |
boolean |
DynamicDescendantFilter.test(UniqueId uniqueId) |
Constructor and Description |
---|
ClassBasedTestDescriptor(UniqueId uniqueId,
java.lang.Class<?> testClass,
java.util.function.Supplier<java.lang.String> displayNameSupplier,
JupiterConfiguration configuration) |
ClassTestDescriptor(UniqueId uniqueId,
java.lang.Class<?> testClass,
JupiterConfiguration configuration) |
DynamicContainerTestDescriptor(UniqueId uniqueId,
int index,
DynamicContainer dynamicContainer,
TestSource testSource,
DynamicDescendantFilter dynamicDescendantFilter,
JupiterConfiguration configuration) |
DynamicNodeTestDescriptor(UniqueId uniqueId,
int index,
DynamicNode dynamicNode,
TestSource testSource,
JupiterConfiguration configuration) |
DynamicTestTestDescriptor(UniqueId uniqueId,
int index,
DynamicTest dynamicTest,
TestSource source,
JupiterConfiguration configuration) |
JupiterEngineDescriptor(UniqueId uniqueId,
JupiterConfiguration configuration) |
JupiterTestDescriptor(UniqueId uniqueId,
java.lang.reflect.AnnotatedElement element,
java.util.function.Supplier<java.lang.String> displayNameSupplier,
TestSource source,
JupiterConfiguration configuration) |
JupiterTestDescriptor(UniqueId uniqueId,
java.lang.String displayName,
TestSource source,
JupiterConfiguration configuration) |
MethodBasedTestDescriptor(UniqueId uniqueId,
java.lang.Class<?> testClass,
java.lang.reflect.Method testMethod,
JupiterConfiguration configuration) |
MethodBasedTestDescriptor(UniqueId uniqueId,
java.lang.String displayName,
java.lang.Class<?> testClass,
java.lang.reflect.Method testMethod,
JupiterConfiguration configuration) |
NestedClassTestDescriptor(UniqueId uniqueId,
java.lang.Class<?> testClass,
JupiterConfiguration configuration) |
TestFactoryTestDescriptor(UniqueId uniqueId,
java.lang.Class<?> testClass,
java.lang.reflect.Method testMethod,
JupiterConfiguration configuration) |
TestMethodTestDescriptor(UniqueId uniqueId,
java.lang.Class<?> testClass,
java.lang.reflect.Method testMethod,
JupiterConfiguration configuration) |
TestMethodTestDescriptor(UniqueId uniqueId,
java.lang.String displayName,
java.lang.Class<?> testClass,
java.lang.reflect.Method testMethod,
JupiterConfiguration configuration,
ExecutableInvoker.ReflectiveInterceptorCall<java.lang.reflect.Method,java.lang.Void> interceptorCall) |
TestTemplateInvocationTestDescriptor(UniqueId uniqueId,
java.lang.Class<?> testClass,
java.lang.reflect.Method templateMethod,
TestTemplateInvocationContext invocationContext,
int index,
JupiterConfiguration configuration) |
TestTemplateTestDescriptor(UniqueId uniqueId,
java.lang.Class<?> testClass,
java.lang.reflect.Method templateMethod,
JupiterConfiguration configuration) |
Modifier and Type | Method and Description |
---|---|
private UniqueId |
MethodSelectorResolver.MethodType.createUniqueId(java.lang.reflect.Method method,
TestDescriptor parent) |
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) |
private java.util.Optional<TestDescriptor> |
MethodSelectorResolver.MethodType.resolveUniqueIdIntoTestDescriptor(UniqueId uniqueId,
SelectorResolver.Context context,
JupiterConfiguration configuration) |
Modifier and Type | Method and Description |
---|---|
UniqueId |
UniqueId.append(java.lang.String segmentType,
java.lang.String value)
Construct a new
UniqueId by appending a new UniqueId.Segment , based
on the supplied segmentType and value , to the end of this
UniqueId . |
UniqueId |
UniqueId.append(UniqueId.Segment segment)
|
static UniqueId |
UniqueId.forEngine(java.lang.String engineId)
Create an engine's unique ID from its
engineId using the default
format. |
UniqueId |
TestDescriptor.getUniqueId()
Get the unique identifier (UID) for this descriptor.
|
static UniqueId |
UniqueId.parse(java.lang.String uniqueId)
Parse a
UniqueId from the supplied string representation using the
default format. |
(package private) UniqueId |
UniqueIdFormat.parse(java.lang.String source)
Parse a
UniqueId from the supplied string representation. |
UniqueId |
UniqueId.removeLastSegment()
|
static UniqueId |
UniqueId.root(java.lang.String segmentType,
java.lang.String value)
Create a root unique ID from the supplied
segmentType and
value using the default format. |
Modifier and Type | Method and Description |
---|---|
TestDescriptor |
TestEngine.discover(EngineDiscoveryRequest discoveryRequest,
UniqueId uniqueId)
Discover tests according to the supplied
EngineDiscoveryRequest . |
java.util.Optional<? extends TestDescriptor> |
TestDescriptor.findByUniqueId(UniqueId uniqueId)
Find the descriptor with the supplied unique ID.
|
(package private) java.lang.String |
UniqueIdFormat.format(UniqueId uniqueId)
Format and return the string representation of the supplied
UniqueId . |
boolean |
UniqueId.hasPrefix(UniqueId potentialPrefix)
Determine if the supplied
UniqueId is a prefix for this
UniqueId . |
default void |
EngineDiscoveryListener.selectorProcessed(UniqueId engineId,
DiscoverySelector selector,
SelectorResolutionResult result)
Must be called after a discovery selector has been processed by a test
engine.
|
Modifier and Type | Field and Description |
---|---|
private UniqueId |
UniqueIdSelector.uniqueId |
Modifier and Type | Method and Description |
---|---|
UniqueId |
UniqueIdSelector.getUniqueId()
Get the selected
UniqueId . |
Modifier and Type | Method and Description |
---|---|
static UniqueIdSelector |
DiscoverySelectors.selectUniqueId(UniqueId uniqueId)
Create a
UniqueIdSelector for the supplied UniqueId . |
Constructor and Description |
---|
UniqueIdSelector(UniqueId uniqueId) |
Modifier and Type | Field and Description |
---|---|
private UniqueId |
AbstractTestDescriptor.uniqueId |
Modifier and Type | Method and Description |
---|---|
UniqueId |
AbstractTestDescriptor.getUniqueId() |
Modifier and Type | Method and Description |
---|---|
java.util.Optional<? extends TestDescriptor> |
AbstractTestDescriptor.findByUniqueId(UniqueId uniqueId) |
Constructor and Description |
---|
AbstractTestDescriptor(UniqueId uniqueId,
java.lang.String displayName)
Create a new
AbstractTestDescriptor with the supplied
UniqueId and display name. |
AbstractTestDescriptor(UniqueId uniqueId,
java.lang.String displayName,
TestSource source)
Create a new
AbstractTestDescriptor with the supplied
UniqueId , display name, and source. |
EngineDescriptor(UniqueId uniqueId,
java.lang.String displayName)
Create a new
EngineDescriptor with the supplied UniqueId
and display name. |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<UniqueId,SelectorResolver.Match> |
EngineDiscoveryRequestResolution.resolvedUniqueIds |
Modifier and Type | Method and Description |
---|---|
void |
LauncherDiscoveryListener.engineDiscoveryFinished(UniqueId engineId,
EngineDiscoveryResult result)
Called when test discovery has finished for an engine.
|
void |
LauncherDiscoveryListener.engineDiscoveryStarted(UniqueId engineId)
Called when test discovery is about to be started for an engine.
|
Constructor and Description |
---|
EngineDiscoveryErrorDescriptor(UniqueId uniqueId,
TestEngine testEngine,
java.lang.Throwable cause) |
Modifier and Type | Method and Description |
---|---|
void |
AbortOnFailureLauncherDiscoveryListener.engineDiscoveryFinished(UniqueId engineId,
EngineDiscoveryResult result) |
void |
CompositeLauncherDiscoveryListener.engineDiscoveryFinished(UniqueId engineId,
EngineDiscoveryResult result) |
void |
LoggingLauncherDiscoveryListener.engineDiscoveryFinished(UniqueId engineId,
EngineDiscoveryResult result) |
void |
CompositeLauncherDiscoveryListener.engineDiscoveryStarted(UniqueId engineId) |
void |
LoggingLauncherDiscoveryListener.engineDiscoveryStarted(UniqueId engineId) |
void |
AbortOnFailureLauncherDiscoveryListener.selectorProcessed(UniqueId engineId,
DiscoverySelector selector,
SelectorResolutionResult result) |
void |
CompositeLauncherDiscoveryListener.selectorProcessed(UniqueId engineId,
DiscoverySelector selector,
SelectorResolutionResult result) |
void |
LoggingLauncherDiscoveryListener.selectorProcessed(UniqueId engineId,
DiscoverySelector selector,
SelectorResolutionResult result) |
Modifier and Type | Method and Description |
---|---|
TestDescriptor |
VintageTestEngine.discover(EngineDiscoveryRequest discoveryRequest,
UniqueId uniqueId) |
Constructor and Description |
---|
RunnerTestDescriptor(UniqueId uniqueId,
java.lang.Class<?> testClass,
org.junit.runner.Runner runner) |
VintageEngineDescriptor(UniqueId uniqueId,
TestSourceProvider testSourceProvider) |
VintageTestDescriptor(UniqueId uniqueId,
org.junit.runner.Description description,
java.lang.String displayName,
TestSource source) |
VintageTestDescriptor(UniqueId uniqueId,
org.junit.runner.Description description,
TestSource source) |
Modifier and Type | Field and Description |
---|---|
private UniqueId |
UniqueIdFilter.uniqueId |
Modifier and Type | Method and Description |
---|---|
VintageEngineDescriptor |
VintageDiscoverer.discover(EngineDiscoveryRequest discoveryRequest,
UniqueId uniqueId) |
private org.junit.runner.manipulation.Filter |
MethodSelectorResolver.toUniqueIdFilter(RunnerTestDescriptor runnerTestDescriptor,
UniqueId uniqueId) |
Constructor and Description |
---|
UniqueIdFilter(RunnerTestDescriptor runnerTestDescriptor,
UniqueId uniqueId) |