Class BasicCommentFactory
java.lang.Object
org.tudalgo.algoutils.tutor.general.assertions.basic.BasicCommentFactory
- All Implemented Interfaces:
CommentFactory<Result<?,?, ?, ?>>
A basic implementation of a comment factory.
-
Constructor Summary
ConstructorsConstructorDescriptionBasicCommentFactory(Environment environment) Constructs a new comment factory with the given environment. -
Method Summary
Modifier and TypeMethodDescriptioncomment(TS result, Context context, PreCommentSupplier<? super TS> commentSupplier) Returns the comment for the given test result, context and pre-comment supplier.static voidsetNumberOfTraceLines(int lines)
-
Constructor Details
-
BasicCommentFactory
Constructs a new comment factory with the given environment.
- Parameters:
environment- the environment
-
-
Method Details
-
comment
public <TS extends Result<?,?, String comment?, ?>> (TS result, Context context, PreCommentSupplier<? super TS> commentSupplier) Description copied from interface:CommentFactoryReturns the comment for the given test result, context and pre-comment supplier.- Specified by:
commentin interfaceCommentFactory<Result<?,?, ?, ?>> - Type Parameters:
TS- the type of the test result- Parameters:
result- the test resultcontext- the context of the testcommentSupplier- the supplier for the pre-comment- Returns:
- the comment
-
setNumberOfTraceLines
public static void setNumberOfTraceLines(int lines)
-