Package net.jqwik.api

Enum Class FixedSeedMode

All Implemented Interfaces:
Serializable, Comparable<FixedSeedMode>, Constable

@API(status=MAINTAINED, since="1.4.0") public enum FixedSeedMode extends Enum<FixedSeedMode>
The fixed seed mode determines how jqwik should behave if a property has an explicit Property.seed() specified. It can be set in Property.whenFixedSeed() for any property method. It can be set globally using the property jqwik.seeds.whenfixed.

This may be useful, for instance, to help prevent a build server from using a fixed seed that may have been accidentally committed.

If it is not set explicitly mode ALLOW will be used.

See Also:
  • Enum Constant Details

  • Method Details

    • values

      public static FixedSeedMode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static FixedSeedMode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      name - the name of the enum constant to be returned.
      the enum constant with the specified name
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null