Package io.cucumber.teamcityformatter
Class MessagesToTeamCityWriter
- java.lang.Object
-
- io.cucumber.teamcityformatter.MessagesToTeamCityWriter
-
- All Implemented Interfaces:
AutoCloseable
public final class MessagesToTeamCityWriter extends Object implements AutoCloseable
Writes Cucumber Messages as TeamCity - Service Messages.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMessagesToTeamCityWriter.Builderstatic classMessagesToTeamCityWriter.TeamCityFeature
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MessagesToTeamCityWriter.Builderbuilder()voidclose()Closes the stream, flushing it first.voidwrite(io.cucumber.messages.types.Envelope envelope)Writes a cucumber message.
-
-
-
Method Detail
-
builder
public static MessagesToTeamCityWriter.Builder builder()
-
write
public void write(io.cucumber.messages.types.Envelope envelope) throws IOExceptionWrites a cucumber message.- Parameters:
envelope- the message- Throws:
IOException- if an IO error occurs
-
close
public void close() throws IOExceptionCloses 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
-
-