Annotation Type EnumSource

    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      EnumSource.Mode mode
      The enum constant selection mode.
      String[] names
      The names of enum constants to provide, or regular expressions to select the names of enum constants to provide.
      Class<? extends Enum<?>> value
      The enum type that serves as the source of the enum constants.
    • Element Detail

      • value

        Class<? extends Enum<?>> value
        The enum type that serves as the source of the enum constants.

        If this attribute is not set explicitly, the declared type of the first parameter of the @ParameterizedTest method is used.

        See Also:
        names(), mode()
        Default:
        org.junit.jupiter.params.provider.NullEnum.class
      • names

        String[] names
        The names of enum constants to provide, or regular expressions to select the names of enum constants to provide.

        If no names or regular expressions are specified, all enum constants declared in the specified enum type will be provided.

        The mode() determines how the names are interpreted.

        See Also:
        value(), mode()
        Default:
        {}