Class FileEntry
java.lang.Object
org.junit.platform.engine.reporting.FileEntry
FileEntry
encapsulates a file or directory to be published to the
reporting infrastructure.- Since:
- 1.12
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic FileEntry
Factory for creating a newFileEntry
from the supplied path and media type.Get the media type of the path to be published.getPath()
Get the path for the file or directory to be published.Get the timestamp for when thisFileEntry
was created.toString()
-
Method Details
-
from
Factory for creating a newFileEntry
from the supplied path and media type.The
Path
may represent a file or a directory.- Parameters:
path
- the path to publish; nevernull
mediaType
- the media type of the path to publish; may benull
— for example, if the path represents a directory
-
getTimestamp
Get the timestamp for when thisFileEntry
was created.- Returns:
- when this entry was created; never
null
-
getPath
Get the path for the file or directory to be published.- Returns:
- the path to publish; never
null
-
getMediaType
-
toString
-