Class NoPublishFormatter

java.lang.Object
io.cucumber.core.plugin.NoPublishFormatter
All Implemented Interfaces:
ColorAware, ConcurrentEventListener, Plugin

public final class NoPublishFormatter extends Object implements ConcurrentEventListener, ColorAware
  • Field Details

    • out

      private final PrintStream out
    • monochrome

      private boolean monochrome
  • Constructor Details

    • NoPublishFormatter

      public NoPublishFormatter()
    • NoPublishFormatter

      NoPublishFormatter(PrintStream out)
  • Method Details

    • setMonochrome

      public void setMonochrome(boolean monochrome)
      Description copied from interface: ColorAware
      When set to monochrome the plugin should not use colored output.

      For the benefit of systems that do not support ANSI escape codes.

      Specified by:
      setMonochrome in interface ColorAware
      Parameters:
      monochrome - true if monochrome output should be used
    • setEventPublisher

      public void setEventPublisher(EventPublisher publisher)
      Description copied from interface: ConcurrentEventListener
      Set the event publisher. The plugin can register event listeners with the publisher.
      Specified by:
      setEventPublisher in interface ConcurrentEventListener
      Parameters:
      publisher - the event publisher
    • writeMessage

      private void writeMessage(io.cucumber.messages.types.Envelope envelope)
    • printBanner

      private void printBanner()