Module org.junit.jupiter.api
Package org.junit.jupiter.api
Annotation Interface IndicativeSentencesGeneration
@DisplayNameGeneration(IndicativeSentences.class)
@Target({ANNOTATION_TYPE,TYPE})
@Retention(RUNTIME)
@Documented
@Inherited
@API(status=EXPERIMENTAL,
since="5.7")
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:
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionClass<? extends DisplayNameGenerator>
Custom display name generator to use for sentence fragments.Custom separator for sentence fragments. -
Field Summary
Modifier and TypeFieldDescriptionstatic final Class<? extends DisplayNameGenerator>
static final String
-
Field Details
-
DEFAULT_SEPARATOR
- See Also:
-
DEFAULT_GENERATOR
-
-
Element Details
-
separator
String separatorCustom separator for sentence fragments.Defaults to ", ".
- Default:
- ", "
-
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
-