Package | Description |
---|---|
org.junit.jupiter.api |
JUnit Jupiter API for writing tests.
|
org.junit.jupiter.api.extension |
JUnit Jupiter API for writing extensions.
|
org.junit.jupiter.engine.config |
Configuration specific to 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.jupiter.engine.extension |
Test extensions specific to the JUnit Jupiter test engine.
|
org.junit.jupiter.params |
JUnit Jupiter extension for parameterized tests.
|
Class and Description |
---|
DisplayNameGenerator
DisplayNameGenerator defines the SPI for generating display names
programmatically. |
DisplayNameGenerator.Standard
Standard
DisplayNameGenerator . |
DynamicContainer
A
DynamicContainer is a container generated at runtime. |
DynamicNode
DynamicNode serves as the abstract base class for a container or a
test case generated at runtime. |
DynamicTest
A
DynamicTest is a test case generated at runtime. |
MethodDescriptor
MethodDescriptor encapsulates functionality for a given Method . |
MethodOrderer
MethodOrderer defines the API for ordering the test methods
in a given test class. |
MethodOrdererContext
MethodOrdererContext encapsulates the context in which
a MethodOrderer will be invoked. |
TestInstance.Lifecycle
Enumeration of test instance lifecycle modes.
|
TestTemplate
@TestTemplate is used to signal that the annotated method is a
test template method. |
Class and Description |
---|
TestInstance.Lifecycle
Enumeration of test instance lifecycle modes.
|
Class and Description |
---|
DisplayNameGenerator
DisplayNameGenerator defines the SPI for generating display names
programmatically. |
TestInstance.Lifecycle
Enumeration of test instance lifecycle modes.
|
Class and Description |
---|
DisplayNameGeneration
@DisplayNameGeneration is used to declare a custom display name
generator for the annotated test class. |
DisplayNameGenerator
DisplayNameGenerator defines the SPI for generating display names
programmatically. |
DynamicContainer
A
DynamicContainer is a container generated at runtime. |
DynamicNode
DynamicNode serves as the abstract base class for a container or a
test case generated at runtime. |
DynamicTest
A
DynamicTest is a test case generated at runtime. |
TestInstance.Lifecycle
Enumeration of test instance lifecycle modes.
|
Class and Description |
---|
MethodDescriptor
MethodDescriptor encapsulates functionality for a given Method . |
MethodOrdererContext
MethodOrdererContext encapsulates the context in which
a MethodOrderer will be invoked. |
Class and Description |
---|
RepeatedTest
@RepeatedTest is used to signal that the annotated method is a
test template method that should be repeated a specified number of times with a configurable display
name. |
RepetitionInfo
RepetitionInfo is used to inject information about the current
repetition of a repeated test into @RepeatedTest , @BeforeEach ,
and @AfterEach methods. |
TestInfo
TestInfo is used to inject information about the current test or
container into to @Test , @RepeatedTest ,
@ParameterizedTest , @TestFactory , @BeforeEach ,
@AfterEach , @BeforeAll , and @AfterAll methods. |
TestReporter
Parameters of type
TestReporter can be injected into
@BeforeEach and @AfterEach lifecycle
methods as well as methods annotated with @Test ,
@RepeatedTest ,
@ParameterizedTest ,
@TestFactory , etc. |
Timeout
@Timeout is used to define a timeout for a method or all testable
methods within one class and its @Nested classes. |
Class and Description |
---|
TestTemplate
@TestTemplate is used to signal that the annotated method is a
test template method. |