Class Events
- All Implemented Interfaces:
Appendable<Events>
The
events element of the events namespace.-
Method Summary
Modifier and TypeMethodDescriptionstatic DocumentWriter<Events> createDocumentWriter(NamespaceRegistry namespaceRegistry, Path xmlFile) Create a newDocumentWriterfor the event-based reporting format.Methods inherited from class org.opentest4j.reporting.events.api.Element
append, toString, withAttribute, withCDataSection, withContentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.opentest4j.reporting.events.api.Appendable
append
-
Method Details
-
createDocumentWriter
public static DocumentWriter<Events> createDocumentWriter(NamespaceRegistry namespaceRegistry, Path xmlFile) throws Exception Create a newDocumentWriterfor the event-based reporting format.- Parameters:
namespaceRegistry- the namespace registry to usexmlFile- 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
-