Module org.junit.jupiter.api
Package org.junit.jupiter.api
Annotation Interface DisplayNameGeneration
@Target(TYPE)
@Retention(RUNTIME)
@Documented
@Inherited
@API(status=STABLE,
since="5.7")
public @interface DisplayNameGeneration
@DisplayNameGeneration
is used to declare a custom display name
generator for the annotated test class.
This annotation is inherited from superclasses and implemented
interfaces. It is also inherited from enclosing classes for @Nested
test classes.
- Since:
- 5.4
- See Also:
DisplayName
,DisplayNameGenerator
,IndicativeSentencesGeneration
-
Required Element Summary
Modifier and TypeRequired ElementDescriptionClass<? extends DisplayNameGenerator>
Custom display name generator.
-
Element Details
-
value
Class<? extends DisplayNameGenerator> valueCustom display name generator.- Returns:
- custom display name generator class
-