Class MessagesToTeamCityWriter

java.lang.Object
io.cucumber.teamcityformatter.MessagesToTeamCityWriter
All Implemented Interfaces:
AutoCloseable

public final class MessagesToTeamCityWriter extends Object implements AutoCloseable
  • Method Details

    • builder

      public static MessagesToTeamCityWriter.Builder builder()
    • write

      public void write(io.cucumber.messages.types.Envelope envelope) throws IOException
      Writes a cucumber message.
      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 interface AutoCloseable
      Throws:
      IOException