# Interface FileSource

All Superinterfaces:
  `FilesystemSource, TestSource`

@Incubating public interface FileSource extends FilesystemSource
A test source defined by a single file.

Since:
  9.4.0

- ## Method Summary

  Modifier and Type
  Method
  Description
  `File`
  `getFile()`
  Returns the file representing the test source.
  `@Nullable FilePosition`
  `getPosition()`
  Returns the position within the file, or null if not available.

- ## Method Details

  - ### getFile

    File getFile()
    Returns the file representing the test source.
    Specified by:
      `getFile` in interface `FilesystemSource`
    Since:
      9.4.0

  - ### getPosition

    @Nullable FilePosition getPosition()
    Returns the position within the file, or null if not available.
    Since:
      9.4.0