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
    Modifier and Type
    Required Element
    Description
    Custom sentence fragment for the annotated class or method.
  • Element Details

    • value

      String value
      Custom sentence fragment for the annotated class or method.
      Returns:
      a custom sentence fragment; never blank or consisting solely of whitespace