@DisplayNameGeneration(value=DisplayNameGenerator.IndicativeSentences.class) @Target(value={ANNOTATION_TYPE,TYPE}) @Retention(value=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.
DisplayName,
DisplayNameGenerator,
DisplayNameGenerator.IndicativeSentences,
DisplayNameGeneration| Modifier and Type | Fields and Description |
|---|---|
static java.lang.Class<? extends DisplayNameGenerator> |
DEFAULT_GENERATOR |
static java.lang.String |
DEFAULT_SEPARATOR |
| Modifier and Type | Optional Element and 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.
|
public static final java.lang.Class<? extends DisplayNameGenerator> DEFAULT_GENERATOR
public abstract java.lang.String separator
Defaults to ", ".
public abstract java.lang.Class<? extends DisplayNameGenerator> generator
Defaults to DisplayNameGenerator.Standard.