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
-
Method Summary
Modifier and TypeMethodDescriptionstatic ReportEntry
Factory for creating a newReportEntry
from a key-value pair.static ReportEntry
Factory for creating a newReportEntry
from a map of key-value pairs.Get an unmodifiable copy of the map of key-value pairs to be published.Get the timestamp for when thisReportEntry
was created.toString()
-
Constructor Details
-
ReportEntry
Deprecated.Usefrom(String, String)
orfrom(Map)
-
-
Method Details
-
from
Factory for creating a newReportEntry
from 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 benull
or blank
-
from
Factory for creating a newReportEntry
from a key-value pair.- Parameters:
key
- the key under which the value should published; nevernull
or blankvalue
- the value to publish; nevernull
or 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 thisReportEntry
was created.Can be used, for example, to order entries.
- Returns:
- when this entry was created; never
null
-
toString
-
from(String, String)
orfrom(Map)