Annotation Type SelectClasspathResource


  • @Retention(RUNTIME)
    @Target(TYPE)
    @Inherited
    @Documented
    @API(status=STABLE,
         since="1.10")
    @Repeatable(SelectClasspathResources.class)
    public @interface SelectClasspathResource
    @SelectClasspathResource is a repeatable annotation that specifies a classpath resource to select when running a test suite on the JUnit Platform.
    Since:
    1.8
    See Also:
    Suite, JUnitPlatform, DiscoverySelectors.selectClasspathResource(String, org.junit.platform.engine.discovery.FilePosition)
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      java.lang.String value
      The name of the classpath resource to select.
    • Optional Element Summary

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

      • value

        java.lang.String value
        The name of the classpath resource to select.
      • line

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

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