@Target(value=TYPE)
@Retention(value=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.
As an alternative to @DisplayNameGeneration, a global
DisplayNameGenerator can be configured for the entire test suite via
the configuration parameter. See
the User Guide for details. Note, however, that a @DisplayNameGeneration
declaration always overrides a global DisplayNameGenerator.
DisplayName,
DisplayNameGenerator,
IndicativeSentencesGeneration| Modifier and Type | Required Element and Description |
|---|---|
java.lang.Class<? extends DisplayNameGenerator> |
value
Custom display name generator.
|
public abstract java.lang.Class<? extends DisplayNameGenerator> value