Top Description Fields Methods
org.junit.jupiter.api

public @Interface IndicativeSentencesGeneration

extends Annotation
Annotations
@DisplayNameGeneration:IndicativeSentences
@Target:ANNOTATION_TYPE, TYPE
@Retention:RUNTIME
@Documented
@Inherited
@API
status:STABLE
since:5.10
Static Imports
org.apiguardian.api.API.Status.STABLE

@IndicativeSentencesGeneration is used to register the 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
DisplayName, DisplayNameGenerator, DisplayNameGenerator.IndicativeSentences, DisplayNameGeneration

Field Summary

Modifier and TypeField and Description
public static final Class<? extends DisplayNameGenerator>
public static final String

Method Summary

Modifier and TypeMethod and Description
public Class<? extends DisplayNameGenerator>
generator()

Custom display name generator to use for sentence fragments.

public String
separator()

Custom separator for sentence fragments.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Field Detail

DEFAULT_GENERATORback to summary
public static final Class<? extends DisplayNameGenerator> DEFAULT_GENERATOR
DEFAULT_SEPARATORback to summary
public static final String DEFAULT_SEPARATOR

Method Detail

generatorback to summary
public Class<? extends DisplayNameGenerator> generator()

Custom display name generator to use for sentence fragments.

Defaults to DisplayNameGenerator.Standard.

separatorback to summary
public String separator()

Custom separator for sentence fragments.

Defaults to , .