Annotation Interface SelectFile


@SelectFile is a repeatable annotation that specifies a file to select when running a test suite on the JUnit Platform.
Since:
1.8
See Also:
Suite, JUnitPlatform, DiscoverySelectors.selectFile(String, org.junit.platform.engine.discovery.FilePosition)
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The file to select.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    int
    The column number within the file; ignored if the line number is ignored or if not greater than zero.
    int
    The line number within the file; ignored if not greater than zero.
  • Element Details

    • value

      String value
      The file to select.
    • line

      int line
      The line number within the file; ignored if not greater than zero.
      Default:
      0
    • column

      int column
      The column number within the file; ignored if the line number is ignored or if not greater than zero.
      Default:
      0