Class Events

java.lang.Object
org.opentest4j.reporting.events.api.Element<Events>
org.opentest4j.reporting.events.root.Events
All Implemented Interfaces:
Appendable<Events>

public class Events extends Element<Events>
The events element of the events namespace.
  • Method Details

    • createDocumentWriter

      public static DocumentWriter<Events> createDocumentWriter(NamespaceRegistry namespaceRegistry, Path xmlFile) throws Exception
      Create a new DocumentWriter for the event-based reporting format.
      Parameters:
      namespaceRegistry - the namespace registry to use
      xmlFile - the file to write to
      Returns:
      the new DocumentWriter
      Throws:
      Exception - if an error initializing the XML writing infrastructure or writing to the XML file occurs