Class ReportEntry
- java.lang.Object
-
- org.junit.platform.engine.reporting.ReportEntry
-
-
Constructor Summary
Constructors Constructor Description ReportEntry()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ReportEntryfrom(String key, String value)Factory for creating a newReportEntryfrom a key-value pair.static ReportEntryfrom(Map<String,String> keyValuePairs)Factory for creating a newReportEntryfrom a map of key-value pairs.Map<String,String>getKeyValuePairs()Get an unmodifiable copy of the map of key-value pairs to be published.LocalDateTimegetTimestamp()Get the timestamp for when thisReportEntrywas created.StringtoString()
-
-
-
Method Detail
-
from
public static ReportEntry from(Map<String,String> keyValuePairs)
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
public static ReportEntry from(String key, String value)
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
public final Map<String,String> 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
public final LocalDateTime getTimestamp()
Get the timestamp for when thisReportEntrywas created.Can be used, for example, to order entries.
- Returns:
- when this entry was created; never
null
-
-