Annotation Interface IndicativeSentencesGeneration
@DisplayNameGeneration(DisplayNameGenerator.IndicativeSentences.class)
@Target({ANNOTATION_TYPE,TYPE})
@Retention(RUNTIME)
@Documented
@Inherited
@API(status=STABLE,
since="5.10")
public @interface IndicativeSentencesGeneration
@IndicativeSentencesGeneration is used to register the
DisplayNameGenerator.IndicativeSentences display name generator and configure it.
The separator() for sentence fragments and the display name
generator() for sentence fragments are configurable. If this annotation
is declared without any attributes — for example,
@IndicativeSentencesGeneration or @IndicativeSentencesGeneration()
— the default configuration will be used.
This annotation is inherited from superclasses and implemented
interfaces. It is also inherited from enclosing classes for @Nested test classes.
- Since:
- 5.7
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Class<? extends DisplayNameGenerator> static final String -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionClass<? extends DisplayNameGenerator> Custom display name generator to use for sentence fragments.Custom separator for sentence fragments.
-
Field Details
-
DEFAULT_SEPARATOR
- See Also:
-
DEFAULT_GENERATOR
-
-
Element Details
-
separator
-
generator
Class<? extends DisplayNameGenerator> generatorCustom display name generator to use for sentence fragments.Defaults to
DisplayNameGenerator.Standard.- Default:
org.junit.jupiter.api.DisplayNameGenerator.Standard.class
-