Top Fields Constructors Methods
org.junit.jupiter.engine.extension

pack-priv Class DefaultTestReporter

extends Object
implements TestReporter
Class Inheritance
All Implemented Interfaces
org.junit.jupiter.api.TestReporter
Imports
java.nio.file.Path, java.util.Map, org.junit.jupiter.api.MediaType, .TestReporter, org.junit.jupiter.api.extension.ExtensionContext, org.junit.jupiter.api.function.ThrowingConsumer

Since
5.12

Field Summary

Modifier and TypeField and Description
private final ExtensionContext

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
publishDirectory(String name, ThrowingConsumer<Path> action)

Overrides default org.junit.jupiter.api.TestReporter.publishDirectory.

Publish a directory with the supplied name written by the supplied action and attach it to the current test or container.

public void
publishEntry(Map<String, String> map)

Implements org.junit.jupiter.api.TestReporter.publishEntry.

Publish the supplied map of key-value pairs as a report entry.

public void
publishFile(String name, MediaType mediaType, ThrowingConsumer<Path> action)

Overrides default org.junit.jupiter.api.TestReporter.publishFile.

Publish a file with the supplied name and media type written by the supplied action and attach it to the current test or container.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

extensionContextback to summary
private final ExtensionContext extensionContext

Constructor Detail

DefaultTestReporterback to summary
pack-priv DefaultTestReporter(ExtensionContext extensionContext)

Method Detail

publishDirectoryback to summary
public void publishDirectory(String name, ThrowingConsumer<Path> action)

Overrides default org.junit.jupiter.api.TestReporter.publishDirectory.

Doc from org.junit.jupiter.api.TestReporter.publishDirectory.

Publish a directory with the supplied name written by the supplied action and attach it to the current test or container.

The Path passed to the supplied action will be relative to the report output directory and will point to an existing directory, but it is up to the action to write files to the directory.

Annotations
@Override
publishEntryback to summary
public void publishEntry(Map<String, String> map)

Implements org.junit.jupiter.api.TestReporter.publishEntry.

Doc from org.junit.jupiter.api.TestReporter.publishEntry.

Publish the supplied map of key-value pairs as a report entry.

Annotations
@Override
publishFileback to summary
public void publishFile(String name, MediaType mediaType, ThrowingConsumer<Path> action)

Overrides default org.junit.jupiter.api.TestReporter.publishFile.

Doc from org.junit.jupiter.api.TestReporter.publishFile.

Publish a file with the supplied name and media type written by the supplied action and attach it to the current test or container.

The Path passed to the supplied action will be relative to the report output directory, but it is up to the action to write the file.

Annotations
@Override