Annotation Interface SelectClasses


@Retention(RUNTIME) @Target(TYPE) @Inherited @Documented @API(status=MAINTAINED, since="1.0") public @interface SelectClasses
@SelectClasses specifies the classes to select when running a test suite on the JUnit Platform.
Since:
1.0
See Also:
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    One or more classes to select by their fully qualified names.
    Class<?>[]
    One or more classes to select.
  • Element Details

    • value

      Class<?>[] value
      One or more classes to select.

      May be use in conjunction with or instead of names.

      Default:
      {}
    • names

      @API(status=EXPERIMENTAL, since="1.10") String[] names
      One or more classes to select by their fully qualified names.

      May be use in conjunction with or instead of value.

      This attribute is intended to be used when a class cannot be referenced directly from where this annotation is used — for example, when a class is not visible due to being private or package-private.

      Since:
      1.10
      Default:
      {}