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.hierarchical |
Support classes and base implementation for any
TestEngine that wishes to organize test suites
hierarchically based on the
Node abstraction. |
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) |
Constructor and Description |
---|
ClassTestDescriptor(UniqueId uniqueId,
java.lang.Class<?> testClass) |
ClassTestDescriptor(UniqueId uniqueId,
java.util.function.Function<java.lang.Class<?>,java.lang.String> defaultDisplayNameGenerator,
java.lang.Class<?> testClass) |
DynamicContainerTestDescriptor(UniqueId uniqueId,
DynamicContainer dynamicContainer,
TestSource testSource) |
DynamicTestTestDescriptor(UniqueId uniqueId,
DynamicTest dynamicTest,
TestSource source) |
JupiterEngineDescriptor(UniqueId uniqueId) |
JupiterTestDescriptor(UniqueId uniqueId,
java.lang.String displayName,
TestSource source) |
MethodBasedTestDescriptor(UniqueId uniqueId,
java.lang.Class<?> testClass,
java.lang.reflect.Method testMethod) |
MethodBasedTestDescriptor(UniqueId uniqueId,
java.lang.String displayName,
java.lang.Class<?> testClass,
java.lang.reflect.Method testMethod) |
NestedClassTestDescriptor(UniqueId uniqueId,
java.lang.Class<?> testClass) |
TestFactoryTestDescriptor(UniqueId uniqueId,
java.lang.Class<?> testClass,
java.lang.reflect.Method testMethod) |
TestMethodTestDescriptor(UniqueId uniqueId,
java.lang.Class<?> testClass,
java.lang.reflect.Method testMethod) |
TestMethodTestDescriptor(UniqueId uniqueId,
java.lang.String displayName,
java.lang.Class<?> testClass,
java.lang.reflect.Method testMethod) |
TestTemplateInvocationTestDescriptor(UniqueId uniqueId,
java.lang.Class<?> testClass,
java.lang.reflect.Method templateMethod,
TestTemplateInvocationContext invocationContext,
int index) |
TestTemplateTestDescriptor(UniqueId uniqueId,
java.lang.Class<?> testClass,
java.lang.reflect.Method templateMethod) |
Modifier and Type | Method and Description |
---|---|
protected UniqueId |
TestContainerResolver.createUniqueId(java.lang.Class<?> testClass,
TestDescriptor parent) |
private UniqueId |
AbstractMethodResolver.createUniqueId(java.lang.reflect.Method method,
TestDescriptor parent) |
Modifier and Type | Method and Description |
---|---|
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) |
private java.util.Optional<TestDescriptor> |
JavaElementsResolver.findTestDescriptorByUniqueId(UniqueId uniqueId) |
protected TestDescriptor |
NestedTestsResolver.resolveClass(java.lang.Class<?> testClass,
UniqueId uniqueId) |
protected TestDescriptor |
TestContainerResolver.resolveClass(java.lang.Class<?> testClass,
UniqueId uniqueId) |
(package private) void |
JavaElementsResolver.resolveUniqueId(UniqueId uniqueId) |
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 . |
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. |
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 . |
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.Set<UniqueId> |
ExecutionTracker.executedUniqueIds |
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) |
VintageTestDescriptor(UniqueId uniqueId,
org.junit.runner.Description description) |
VintageTestDescriptor(UniqueId uniqueId,
org.junit.runner.Description description,
java.lang.String displayName,
TestSource source) |
Modifier and Type | Field and Description |
---|---|
private UniqueId |
UniqueIdFilter.uniqueId |
Modifier and Type | Method and Description |
---|---|
private RunnerTestDescriptor |
TestClassRequestResolver.createCompleteRunnerTestDescriptor(java.lang.Class<?> testClass,
org.junit.runner.Runner runner,
UniqueId engineId) |
(package private) RunnerTestDescriptor |
TestClassRequestResolver.createRunnerTestDescriptor(TestClassRequest request,
UniqueId engineId) |
private RunnerTestDescriptor |
TestClassRequestResolver.determineRunnerTestDescriptor(java.lang.Class<?> testClass,
org.junit.runner.Runner runner,
java.util.List<RunnerTestDescriptorAwareFilter> filters,
UniqueId engineId) |
private java.util.Optional<java.lang.String> |
UniqueIdSelectorResolver.determineTestClassName(UniqueId uniqueId) |
TestDescriptor |
VintageDiscoverer.discover(EngineDiscoveryRequest discoveryRequest,
UniqueId uniqueId) |
private boolean |
UniqueIdSelectorResolver.isForVintageEngine(UniqueId uniqueId) |
private boolean |
UniqueIdSelectorResolver.isNotEngineId(UniqueId uniqueId) |
private java.util.Optional<java.lang.Class<?>> |
UniqueIdSelectorResolver.loadTestClass(java.lang.String className,
UniqueId uniqueId) |
private void |
UniqueIdSelectorResolver.resolveIntoFilteredTestClass(UniqueId uniqueId,
java.util.function.Predicate<java.lang.Class<?>> classFilter,
TestClassCollector collector) |
Constructor and Description |
---|
UniqueIdFilter(UniqueId uniqueId) |