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.
A type representing a factory for creating result comments.
-
Method Summary
Modifier and TypeMethodDescriptioncomment(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 resultcontext- the context of the testpreCommentSupplier- the supplier for the pre-comment- Returns:
- the comment
-