Interface CommentFactory<RT extends Result<?,?,?,?>>

Type Parameters:
RT - the type of supported results
All Known Implementing Classes:
BasicCommentFactory
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface CommentFactory<RT extends Result<?,?,?,?>>

A type representing a factory for creating result comments.

  • Method Summary

    Modifier and Type
    Method
    Description
    <RTS extends RT>
    String
    comment(RTS result, Context context, PreCommentSupplier<? super RTS> preCommentSupplier)
    Returns the comment for the given test result, context and pre-comment supplier.
  • Method Details

    • comment

      <RTS extends RT> String comment(RTS result, Context context, PreCommentSupplier<? super RTS> preCommentSupplier)
      Returns the comment for the given test result, context and pre-comment supplier.
      Type Parameters:
      RTS - the type of the test result
      Parameters:
      result - the test result
      context - the context of the test
      preCommentSupplier - the supplier for the pre-comment
      Returns:
      the comment