Package com.pholser.junit.quickcheck.generator
package com.pholser.junit.quickcheck.generator
-
ClassDescriptionMark a parameter of a
Propertymethod with this annotation to ensure that a limited set of values are guaranteed to be used as the value of that parameter to test the property.Produces values for property parameters of types that have parameterizations that would also need generation, such as collections, maps, and predicates.Ctor<T>Produces instances of a class by generating values for the parameters of one of the constructors on the class, and invoking the constructor.DecimalGenerator<T extends Number>Base class for generators of decimal types, such asdoubleandBigDecimal.Mark a parameter of aPropertymethod with this annotation to make values generated for the parameter distinct from each other.Fields<T>Produces instances of a class by reflecting the class's fields and generating random values for them.Gen<T>Represents a strategy for generating random values.Generators are fed instances of this interface on each generation so that, if they choose, they can use these instances to influence the results of a generation for a particular property parameter.Generator<T>Produces values for property parameters.Apply this annotation to an annotation that marks property parameters, in order that the marked annotation can be used to configure generators for values of the parameter's type.Raised if a problem arises when attempting to configure a generator with annotations from a property parameter.An access point for available generators.Mark a parameter of aPropertymethod with this annotation to constrain the values generated for the parameter to a given range.IntegralGenerator<T extends Number>Base class for generators of integral types, such asintandBigInteger.Helper class for creating instances of "functional interfaces".Mark a parameter of aPropertymethod with this annotation to indicate that the parameter is nullable, and to optionally configure the probability of generating a null value.Mark a parameter of aPropertymethod with this annotation to limit the set of values of that parameter used to test the property.Mark a parameter of aPropertymethod with this annotation to constrain the values generated for the parameter to a given precision.Shrink<T>Represents a strategy for producing objects "smaller than" a given object.Mark a parameter of aPropertymethod with this annotation to constrain the size of values generated for the parameter.Produces values for property parameters of typevoidorVoid.