Module org.junit.platform.engine
Class FileSource
java.lang.Object
org.junit.platform.engine.support.descriptor.FileSource
- All Implemented Interfaces:
Serializable,FileSystemSource,UriSource,TestSource
File based
TestSource with an optional
position.- Since:
- 1.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic FileSourceCreate a newFileSourceusing the suppliedfile.static FileSourcefrom(File file, FilePosition filePosition) final FilegetFile()Get the source file.final Optional<FilePosition>Get theFilePosition, if available.final URIgetUri()inthashCode()toString()
-
Method Details
-
from
Create a newFileSourceusing the suppliedfile.- Parameters:
file- the source file; must not benull
-
from
- Parameters:
file- the source file; must not benullfilePosition- the position in the source file; may benull
-
getUri
-
getFile
Get the source file.- Specified by:
getFilein interfaceFileSystemSource- Returns:
- the source file; never
null
-
getPosition
Get theFilePosition, if available. -
equals
-
hashCode
public int hashCode() -
toString
-