Class TestNGFormatter

java.lang.Object
io.cucumber.core.plugin.TestNGFormatter
All Implemented Interfaces:
EventListener, Plugin

public final class TestNGFormatter extends Object implements EventListener
  • Field Details

    • writer

      private final io.cucumber.testngxmlformatter.MessagesToTestngXmlWriter writer
  • Constructor Details

    • TestNGFormatter

      public TestNGFormatter(OutputStream out)
  • Method Details

    • setEventPublisher

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

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