@FunctionalInterface @API(status=STABLE, since="5.0") public interface TestReporter
TestReporter can be injected into
@BeforeEach and @AfterEach lifecycle
methods as well as methods annotated with @Test,
@RepeatedTest,
@ParameterizedTest,
@TestFactory, etc.
Within such methods the injected TestReporter can be used to
publish report entries.
publishEntry(Map),
publishEntry(String, String)| Modifier and Type | Method and Description |
|---|---|
void |
publishEntry(Map<String,String> map)
Publish the supplied map of key-value pairs as a report entry.
|
default void |
publishEntry(String key,
String value)
Publish the supplied key-value pair as a report entry.
|
void publishEntry(Map<String,String> map)
map - the key-value pairs to be published; never null;
keys and values within entries in the map also must not be
null or blankpublishEntry(String, String)default void publishEntry(String key, String value)
key - the key of the entry to publishvalue - the value of the entry to publishpublishEntry(Map)Copyright © 2020. All rights reserved.