Package io.cucumber.htmlformatter
Class MessagesToHtmlWriter
- java.lang.Object
-
- io.cucumber.htmlformatter.MessagesToHtmlWriter
-
- All Implemented Interfaces:
AutoCloseable
public class MessagesToHtmlWriter extends Object implements AutoCloseable
Writes the message output of a test run as single page html report.
-
-
Constructor Summary
Constructors Constructor Description MessagesToHtmlWriter(Writer writer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Closes the stream, flushing it first.void
write(io.cucumber.messages.Messages.Envelope envelope)
Writes a cucumber message to the html output.
-
-
-
Constructor Detail
-
MessagesToHtmlWriter
public MessagesToHtmlWriter(Writer writer) throws IOException
- Throws:
IOException
-
-
Method Detail
-
write
public void write(io.cucumber.messages.Messages.Envelope envelope) throws IOException
Writes a cucumber message to the html output.- Parameters:
envelope
- the message- Throws:
IOException
- if an IO error occurs
-
close
public void close() throws IOException
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:
close
in interfaceAutoCloseable
- Throws:
IOException
- if an IO error occurs
-
-