Package io.cucumber.testngxmlformatter
Class MessagesToTestngXmlWriter
java.lang.Object
io.cucumber.testngxmlformatter.MessagesToTestngXmlWriter
- All Implemented Interfaces:
AutoCloseable
Writes the message output of a test run as single page xml report.
Note: Messages are first collected and only written once the stream is closed.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMessagesToTestngXmlWriter(io.cucumber.query.NamingStrategy.ExampleName exampleNameStrategy, OutputStream out) -
Method Summary
-
Constructor Details
-
MessagesToTestngXmlWriter
-
MessagesToTestngXmlWriter
public MessagesToTestngXmlWriter(io.cucumber.query.NamingStrategy.ExampleName exampleNameStrategy, OutputStream out)
-
-
Method Details
-
write
Writes a cucumber message to the xml output.- Parameters:
envelope- the message- Throws:
IOException- if an IO error occurs
-
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- Throws:
IOException- if an IO error occurs
-