Annotation Type Random


@Documented @Retention(RUNTIME) @Target({FIELD,PARAMETER}) @ExtendWith(RandomValueExtension.class) @API(status=EXPERIMENTAL, since="0.2") public @interface Random
Annotation for automatic random value injection in JUnit Jupiter tests.
Since:
0.2
Version:
1.0, 2023-11
Author:
(w) Iker Hernaez
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Class<?>[]
    The validation groups to use when extracting the constraints of the random value.
  • Element Details

    • groups

      Class<?>[] groups
      The validation groups to use when extracting the constraints of the random value.
      Returns:
      The validation groups.
      Default:
      {}