Class Data
- java.lang.Object
-
- org.opentest4j.reporting.events.api.Element<T>
-
- org.opentest4j.reporting.events.api.ChildElement<Attachments,Data>
-
- org.opentest4j.reporting.events.core.Data
-
- All Implemented Interfaces:
Appendable<Data>
public class Data extends ChildElement<Attachments,Data>
Thedata
element of the core namespace.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addEntry(java.lang.String key, java.lang.String value)
Add anentry
child element to this element.Data
withTime(java.time.LocalDateTime timestamp)
Set thetime
attribute of this element.-
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
-
withTime
public Data withTime(java.time.LocalDateTime timestamp)
Set thetime
attribute of this element.- Parameters:
timestamp
- the timestamp to set- Returns:
- this element
-
addEntry
public void addEntry(java.lang.String key, java.lang.String value)
Add anentry
child element to this element.- Parameters:
key
- entry keyvalue
- entry value
-
-