Annotation Type DisplayNameGenerator.IndicativeSentences.SentenceFragment


  • @Target({TYPE,METHOD})
    @Retention(RUNTIME)
    @API(status=MAINTAINED,
         since="5.13.3")
    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
      java.lang.String value
      Custom sentence fragment for the annotated class or method.
    • Element Detail

      • value

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