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>
Theevents
element of the events namespace.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DocumentWriter<Events>
createDocumentWriter(NamespaceRegistry namespaceRegistry, java.nio.file.Path xmlFile)
Create a newDocumentWriter
for the event-based reporting format.-
Methods inherited from class org.opentest4j.reporting.events.api.Element
append, toString, withAttribute, withCDataSection, withContent
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.opentest4j.reporting.events.api.Appendable
append
-
-
-
-
Method Detail
-
createDocumentWriter
public static DocumentWriter<Events> createDocumentWriter(NamespaceRegistry namespaceRegistry, java.nio.file.Path xmlFile) throws java.lang.Exception
Create a newDocumentWriter
for the event-based reporting format.- Parameters:
namespaceRegistry
- the namespace registry to usexmlFile
- the file to write to- Returns:
- the new
DocumentWriter
- Throws:
java.lang.Exception
- if an error initializing the XML writing infrastructure or writing to the XML file occurs
-
-