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.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.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,
Class<?> testClass) |
ClassTestDescriptor(UniqueId uniqueId,
Function<Class<?>,String> defaultDisplayNameGenerator,
Class<?> testClass) |
JupiterEngineDescriptor(UniqueId uniqueId) |
NestedClassTestDescriptor(UniqueId uniqueId,
Class<?> testClass) |
TestFactoryTestDescriptor(UniqueId uniqueId,
Class<?> testClass,
Method testMethod) |
TestMethodTestDescriptor(UniqueId uniqueId,
Class<?> testClass,
Method testMethod) |
TestTemplateTestDescriptor(UniqueId uniqueId,
Class<?> testClass,
Method templateMethod) |
Modifier and Type | Method and Description |
---|---|
UniqueId |
UniqueId.append(String segmentType,
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(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(String uniqueId)
Parse a
UniqueId from the supplied string representation using the
default format. |
static UniqueId |
UniqueId.root(String segmentType,
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 . |
Optional<? extends TestDescriptor> |
TestDescriptor.findByUniqueId(UniqueId uniqueId)
Find the descriptor with the supplied unique ID.
|
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 . |
Modifier and Type | Method and Description |
---|---|
UniqueId |
AbstractTestDescriptor.getUniqueId() |
Modifier and Type | Method and Description |
---|---|
Optional<? extends TestDescriptor> |
AbstractTestDescriptor.findByUniqueId(UniqueId uniqueId) |
Constructor and Description |
---|
AbstractTestDescriptor(UniqueId uniqueId,
String displayName)
Create a new
AbstractTestDescriptor with the supplied
UniqueId and display name. |
AbstractTestDescriptor(UniqueId uniqueId,
String displayName,
TestSource source)
Create a new
AbstractTestDescriptor with the supplied
UniqueId , display name, and source. |
EngineDescriptor(UniqueId uniqueId,
String displayName)
Create a new
EngineDescriptor with the supplied UniqueId
and display name. |
Modifier and Type | Method and Description |
---|---|
TestDescriptor |
VintageTestEngine.discover(EngineDiscoveryRequest discoveryRequest,
UniqueId uniqueId) |
Constructor and Description |
---|
RunnerTestDescriptor(UniqueId uniqueId,
Class<?> testClass,
org.junit.runner.Runner runner) |
VintageTestDescriptor(UniqueId uniqueId,
org.junit.runner.Description description) |
Modifier and Type | Method and Description |
---|---|
TestDescriptor |
VintageDiscoverer.discover(EngineDiscoveryRequest discoveryRequest,
UniqueId uniqueId) |