Class PublishFormatter

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

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

    • DEFAULT_CUCUMBER_MESSAGE_STORE_URL

      public static final String DEFAULT_CUCUMBER_MESSAGE_STORE_URL
      Where to publish messages by default
      See Also:
    • urlReporter

      private final UrlReporter urlReporter
    • delegate

      private final MessageFormatter delegate
  • Constructor Details

  • Method Details

    • 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
    • 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
    • createCurlOption

      private static CurlOption createCurlOption(@Nullable String token)