Package org.junit.jupiter.api
Annotation Type IndicativeSentencesGeneration
-
@DisplayNameGeneration(IndicativeSentences.class) @Target({ANNOTATION_TYPE,TYPE}) @Retention(RUNTIME) @Documented @Inherited @API(status=STABLE, since="5.10") public @interface IndicativeSentencesGeneration
@IndicativeSentencesGenerationis used to register theDisplayNameGenerator.IndicativeSentencesdisplay name generator and configure it.The
separator()for sentence fragments and the display namegenerator()for sentence fragments are configurable. If this annotation is declared without any attributes — for example,@IndicativeSentencesGenerationor@IndicativeSentencesGeneration()— the default configuration will be used.This annotation is inherited from superclasses and implemented interfaces. It is also inherited from enclosing classes for
@Nestedtest classes.- Since:
- 5.7
- See Also:
DisplayName,DisplayNameGenerator,DisplayNameGenerator.IndicativeSentences,DisplayNameGeneration
-
-
Field Summary
Fields Modifier and Type Fields Description static java.lang.Class<? extends DisplayNameGenerator>DEFAULT_GENERATORstatic java.lang.StringDEFAULT_SEPARATOR
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.Class<? extends DisplayNameGenerator>generatorCustom display name generator to use for sentence fragments.java.lang.StringseparatorCustom separator for sentence fragments.
-
-
-
-
DEFAULT_GENERATOR
static final java.lang.Class<? extends DisplayNameGenerator> DEFAULT_GENERATOR
-
-
Element Detail
-
separator
java.lang.String separator
Custom separator for sentence fragments.Defaults to ", ".
- Default:
- ", "
-
-
-
generator
java.lang.Class<? extends DisplayNameGenerator> generator
Custom display name generator to use for sentence fragments.Defaults to
DisplayNameGenerator.Standard.- Default:
- org.junit.jupiter.api.DisplayNameGenerator.Standard.class
-
-