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
@IndicativeSentencesGeneration
is used to register theDisplayNameGenerator.IndicativeSentences
display 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,@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:
DisplayName
,DisplayNameGenerator
,DisplayNameGenerator.IndicativeSentences
,DisplayNameGeneration
-
-
Field Summary
Fields Modifier and Type Fields Description static java.lang.Class<? extends DisplayNameGenerator>
DEFAULT_GENERATOR
static java.lang.String
DEFAULT_SEPARATOR
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.Class<? extends DisplayNameGenerator>
generator
Custom display name generator to use for sentence fragments.java.lang.String
separator
Custom 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
-
-