Interface TestReporter

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.


    @FunctionalInterface
    @API(status=STABLE,
         since="5.0")
    public interface TestReporter
    Parameters of type TestReporter can be injected into methods of test classes annotated with @BeforeEach, @AfterEach, and @Test.

    Within such methods this instance of type TestReporter can be used to publish report entries.

    Since:
    5.0
    • Method Detail

      • publishEntry

        void publishEntry​(java.util.Map<java.lang.String,java.lang.String> values)
        Publish the supplied values as a report entry.
        Parameters:
        values - the map to be published for this entry
      • publishEntry

        default void publishEntry​(java.lang.String key,
                                  java.lang.String value)