Module org.junit.jupiter.api
Package org.junit.jupiter.api
Annotation Interface DisplayNameGenerator.IndicativeSentences.SentenceFragment
- Enclosing class:
DisplayNameGenerator.IndicativeSentences
@Target({TYPE,METHOD})
@Retention(RUNTIME)
@API(status=EXPERIMENTAL,
since="5.13")
public static @interface DisplayNameGenerator.IndicativeSentences.SentenceFragment
@SentenceFragment
is used to configure a custom sentence fragment
for a sentence generated by the IndicativeSentences
DisplayNameGenerator
.
Note that @DisplayName
always takes precedence
over @SentenceFragment
.
- Since:
- 5.13
-
Required Element Summary
Required Elements
-
Element Details
-
value
String valueCustom sentence fragment for the annotated class or method.- Returns:
- a custom sentence fragment; never blank or consisting solely of whitespace
-