Package org.junit.jupiter.api
Annotation Type DisplayNameGeneration
-
@Target(TYPE) @Retention(RUNTIME) @Documented @Inherited @API(status=STABLE, since="5.7") public @interface DisplayNameGeneration@DisplayNameGenerationis 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
@Nestedtest classes.As an alternative to
@DisplayNameGeneration, a globalDisplayNameGeneratorcan be configured for the entire test suite via the "junit.jupiter.displayname.generator.default" configuration parameter. See the User Guide for details. Note, however, that a@DisplayNameGenerationdeclaration always overrides a globalDisplayNameGenerator.- Since:
- 5.4
- See Also:
DisplayName,DisplayNameGenerator,IndicativeSentencesGeneration
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.Class<? extends DisplayNameGenerator>valueCustom display name generator.
-
-
-
Element Detail
-
value
java.lang.Class<? extends DisplayNameGenerator> value
Custom display name generator.- Returns:
- custom display name generator class
-
-