java.lang.Object
org.junit.platform.engine.reporting.ReportEntry
@API(status=STABLE, since="1.0") public final class ReportEntry extends Object
ReportEntry
encapsulates a time-stamped map of String
-based
key-value pairs to be published to the reporting infrastructure.- Since:
- 1.0
- See Also:
from(Map)
,from(String, String)
-
Constructor Summary
Constructors Constructor Description ReportEntry()
Deprecated. -
Method Summary
Modifier and Type Method Description static ReportEntry
from(String key, String value)
Factory for creating a newReportEntry
from a key-value pair.static ReportEntry
from(Map<String,String> keyValuePairs)
Factory for creating a newReportEntry
from a map of key-value pairs.Map<String,String>
getKeyValuePairs()
Get an unmodifiable copy of the map of key-value pairs to be published.LocalDateTime
getTimestamp()
Get the timestamp for when thisReportEntry
was created.String
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)