Class DefaultSummaryPrinter

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

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

    • out

      private final OutputStream out
    • writer

      private io.cucumber.prettyformatter.MessagesToSummaryWriter writer
  • Constructor Details

    • DefaultSummaryPrinter

      public DefaultSummaryPrinter()
    • DefaultSummaryPrinter

      DefaultSummaryPrinter(OutputStream out)
  • Method Details

    • createBuilder

      private static io.cucumber.prettyformatter.MessagesToSummaryWriter.Builder createBuilder()
    • 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
    • write

      private void write(io.cucumber.messages.types.Envelope event)