Class ReportEntry
java.lang.Object
org.junit.platform.engine.reporting.ReportEntry
ReportEntry encapsulates a time-stamped map of String-based
key-value pairs to be published to the reporting infrastructure.- Since:
- 1.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ReportEntryFactory for creating a newReportEntryfrom a key-value pair.static ReportEntryFactory for creating a newReportEntryfrom a map of key-value pairs.Get an unmodifiable copy of the map of key-value pairs to be published.final LocalDateTimeGet the timestamp for when thisReportEntrywas created.toString()
-
Constructor Details
-
ReportEntry
Deprecated.Usefrom(String, String)orfrom(Map)
-
-
Method Details
-
from
Factory for creating a newReportEntryfrom a map of key-value pairs.- Parameters:
keyValuePairs- the map of key-value pairs to be published; nevernull; keys and values within entries in the map also must not benullor blank
-
from
Factory for creating a newReportEntryfrom a key-value pair.- Parameters:
key- the key under which the value should published; nevernullor blankvalue- the value to publish; nevernullor blank
-
getKeyValuePairs
Get an unmodifiable copy of the map of key-value pairs to be published.- Returns:
- a copy of the map of key-value pairs; never
null
-
getTimestamp
Get the timestamp for when thisReportEntrywas created.Can be used, for example, to order entries.
- Returns:
- when this entry was created; never
null
-
toString
-
from(String, String)orfrom(Map)