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 FileEntryFactory for creating a newFileEntryfrom 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 thisFileEntrywas created.toString()
-
Method Details
-
from
Factory for creating a newFileEntryfrom the supplied path and media type.The
Pathmay represent a file or a directory.- Parameters:
path- the path to publish; nevernullmediaType- the media type of the path to publish; may benull— for example, if the path represents a directory
-
getTimestamp
Get the timestamp for when thisFileEntrywas 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
Get the media type of the path to be published.- Returns:
- the media type of the path to publish; never
nullbut potentially empty — for example, if the path represents a directory
-
toString
-