Package io.cucumber.prettyformatter
Class MessagesToPrettyWriter
java.lang.Object
io.cucumber.prettyformatter.MessagesToPrettyWriter
- All Implemented Interfaces:
AutoCloseable
Writes a pretty report of the scenario execution as it happens.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic enum -
Method Summary
-
Method Details
-
builder
-
write
Writes a cucumber message to the pretty output.- Parameters:
envelope- the message- Throws:
IOException- if an IO error occurs
-
close
public void close()Closes the stream, flushing it first. Once closed further write() invocations will cause an IOException to be thrown. Closing a closed stream has no effect.- Specified by:
closein interfaceAutoCloseable
-