java.lang.Object
org.junit.platform.engine.reporting.FileEntry

@API(status=EXPERIMENTAL, since="1.12") public final class FileEntry extends Object
FileEntry encapsulates a file or directory to be published to the reporting infrastructure.
Since:
1.12
See Also:
  • Method Details

    • from

      public static FileEntry from(Path path, String mediaType)
      Factory for creating a new FileEntry from the supplied path and media type.
      Parameters:
      path - the path to publish; never null
      mediaType - the media type of the path to publish; may be null
    • getTimestamp

      public LocalDateTime getTimestamp()
      Get the timestamp for when this FileEntry was created.
      Returns:
      when this entry was created; never null
    • getPath

      public Path getPath()
      Get the path to be published.
      Returns:
      the path to publish; never null
    • getMediaType

      public Optional<String> getMediaType()
      Get the media type of the path to be published.
      Returns:
      the media type of the path to publish; never null
    • toString

      public String toString()
      Overrides:
      toString in class Object