| Interface | Description |
|---|---|
| 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, @BeforeEach, @AfterEach,
@BeforeAll, and @AfterAll methods. |
| TestReporter |
Parameters of type
TestReporter can be injected into methods of
test classes annotated with @BeforeEach,
@AfterEach, and @Test. |
| Class | Description |
|---|---|
| AssertAll |
AssertAll is a collection of utility methods that support asserting
multiple conditions in tests at once. |
| AssertArrayEquals |
AssertArrayEquals is a collection of utility methods that support asserting
array equality in tests. |
| AssertEquals |
AssertEquals is a collection of utility methods that support asserting
equality on objects and primitives in tests. |
| AssertFalse |
AssertFalse is a collection of utility methods that support asserting
false in tests. |
| Assertions |
Assertions is a collection of utility methods that support asserting
conditions in tests. |
| AssertionUtils |
AssertionUtils is a collection of utility methods that are common to
all assertion implementations. |
| AssertIterableEquals |
AssertIterable is a collection of utility methods that support asserting
Iterable equality in tests. |
| AssertLinesMatch |
AssertLinesMatch is a collection of utility methods that support asserting
lines of String equality or Pattern-match in tests. |
| AssertNotEquals |
AssertNotEquals is a collection of utility methods that support asserting
inequality on objects in tests. |
| AssertNotNull |
AssertNotNull is a collection of utility methods that support asserting
that there is an object. |
| AssertNotSame |
AssertNotSame is a collection of utility methods that support asserting
two objects are not the same. |
| AssertNull |
AssertNull is a collection of utility methods that support asserting
there is no object. |
| AssertSame |
AssertSame is a collection of utility methods that support asserting
two objects are the same. |
| AssertThrows |
AssertThrows is a collection of utility methods that support asserting
an exception of an expected type is thrown. |
| AssertTimeout |
AssertTimeout is a collection of utility methods that support asserting
the execution of the code under test did not take longer than the timeout duration. |
| AssertTrue |
AssertTrue is a collection of utility methods that support asserting
true in tests. |
| Assumptions |
Assumptions is a collection of utility methods that support
conditional test execution based on assumptions. |
| DynamicContainer |
A
DynamicContainer is a container generated at runtime. |
| DynamicNode |
A
DynamicNode is the abstract basis class for a container or a test
case generated at runtime. |
| DynamicTest |
A
DynamicTest is a test case generated at runtime. |
| Enum | Description |
|---|---|
| TestInstance.Lifecycle |
Enumeration of test instance lifecycle modes.
|
| Annotation Type | Description |
|---|---|
| AfterAll |
@AfterAll is used to signal that the annotated method should be
executed after all tests in the current test class. |
| AfterEach |
@AfterEach is used to signal that the annotated method should be
executed after each @Test method in
the current test class. |
| BeforeAll |
@BeforeAll is used to signal that the annotated method should be
executed before all tests in the current test class. |
| BeforeEach |
@BeforeEach is used to signal that the annotated method should be
executed before each @Test method in
the current test class. |
| Disabled |
@Disabled is used to signal that the annotated test class or
test method is currently disabled and should not be executed. |
| DisplayName |
@DisplayName is used to declare a custom display
name for the annotated test class or test method. |
| Nested |
@Nested is used to signal that the annotated class is a nested,
non-static test class. |
| 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. |
| Tag |
@Tag is a repeatable annotation that is
used to declare a tag for the annotated test class or test method. |
| Tags |
@Tags is a container for one or more @Tag declarations. |
| Test |
@Test is used to signal that the annotated method is a
test method. |
| TestFactory |
@TestFactory is used to signal that the annotated method is a
test factory method. |
| TestInstance |
@TestInstance is a type-level annotation that is used to configure
the lifecycle of test instances for the annotated
test class or test interface. |
| TestTemplate |
@TestTemplate is used to signal that the annotated method is a
test template method. |