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 | Description |
---|---|---|
TestDescriptor |
JupiterTestEngine.discover(EngineDiscoveryRequest discoveryRequest,
UniqueId uniqueId) |
Constructor | 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) |
|
JupiterEngineDescriptor(UniqueId uniqueId) |
|
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) |
|
TestTemplateTestDescriptor(UniqueId uniqueId,
java.lang.Class<?> testClass,
java.lang.reflect.Method templateMethod) |
Modifier and Type | Method | 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. |
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 | 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.
|
Modifier and Type | Method | Description |
---|---|---|
UniqueId |
UniqueIdSelector.getUniqueId() |
Get the selected
UniqueId . |
Modifier and Type | Method | Description |
---|---|---|
static UniqueIdSelector |
DiscoverySelectors.selectUniqueId(UniqueId uniqueId) |
Create a
UniqueIdSelector for the supplied UniqueId . |
Modifier and Type | Method | Description |
---|---|---|
UniqueId |
AbstractTestDescriptor.getUniqueId() |
Modifier and Type | Method | Description |
---|---|---|
java.util.Optional<? extends TestDescriptor> |
AbstractTestDescriptor.findByUniqueId(UniqueId uniqueId) |
Constructor | 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 | Method | Description |
---|---|---|
TestDescriptor |
VintageTestEngine.discover(EngineDiscoveryRequest discoveryRequest,
UniqueId uniqueId) |
Constructor | Description |
---|---|
RunnerTestDescriptor(UniqueId uniqueId,
java.lang.Class<?> testClass,
org.junit.runner.Runner runner) |
|
VintageTestDescriptor(UniqueId uniqueId,
org.junit.runner.Description description) |
Modifier and Type | Method | Description |
---|---|---|
TestDescriptor |
VintageDiscoverer.discover(EngineDiscoveryRequest discoveryRequest,
UniqueId uniqueId) |