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 TypeMethodDescriptionboolean
static FileSource
Create a newFileSource
using the suppliedfile
.static FileSource
from
(File file, FilePosition filePosition) final File
getFile()
Get the source file.final Optional<FilePosition>
Get theFilePosition
, if available.final URI
getUri()
int
hashCode()
toString()
-
Method Details
-
from
Create a newFileSource
using the suppliedfile
.- Parameters:
file
- the source file; must not benull
-
from
- Parameters:
file
- the source file; must not benull
filePosition
- the position in the source file; may benull
-
getUri
-
getFile
Get the source file.- Specified by:
getFile
in interfaceFileSystemSource
- Returns:
- the source file; never
null
-
getPosition
Get theFilePosition
, if available. -
equals
-
hashCode
public int hashCode() -
toString
-