Annotation Type SelectFile


@Retention(RUNTIME)
@Target(TYPE)
@Inherited
@Documented
@API(status=EXPERIMENTAL,
     since="1.8")
@Repeatable(SelectFiles.class)
public @interface SelectFile
@SelectFiles specifies the files 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
    String value
    A file to select.
  • Optional Element Summary

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

    • value

      String value
      A file to select.
    • line

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

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