@DisplayName
is used to declare a custom display
name for the annotated test class or test method.
Display names are typically used for test reporting in IDEs and build tools and may contain spaces, special characters, and even emoji.
Test
, Tag
, TestInfo
, DisplayNameGeneration
, DisplayNameGenerator
Modifier and Type | Method and Description |
---|---|
public String | Returns: a custom display name; never blank or consisting solely of whitespaceCustom display name for the annotated class or method. |
value | back to summary |
---|---|
public String value() Custom display name for the annotated class or method.
|