Uses of Interface
io.vavr.test.Gen
Packages that use Gen
Package
Description
A property check framework built around Property which integrates well with unit test frameworks like junit.
-
Uses of Gen in io.vavr.test
Methods in io.vavr.test that return GenModifier and TypeMethodDescriptionArbitrary.apply
(int size) Returns a generator for objects of type T.Gen.choose
(char... characters) Chooses a char from all chars in the arrayGen.choose
(char min, char max) Chooses a char between min and max, bounds inclusive and chars distributed according to the underlying random number generator.Gen.choose
(double min, double max) Chooses a double between min and max, bounds inclusive and numbers distributed according to the distribution of the underlying random number generator.Gen.choose
(int min, int max) Chooses an int between min and max, bounds inclusive and numbers distributed according to the distribution of the underlying random number generator.Gen.choose
(long min, long max) Chooses a long between min and max, bounds inclusive and numbers distributed according to the distribution of the underlying random number generator.Chooses an enum value from all the enum constants defined in the enumerated type.static <T> Gen
<T> Chooses a value from all values in the iterablestatic <T> Gen
<T> Gen.choose
(T... values) Chooses a value from all values in the array.static <T> Gen
<T> Gen.fail()
A failing generator which throws a RuntimeException("failed").static <T> Gen
<T> A failing generator which throws a RuntimeException.Returns a generator based on this generator which produces values that fulfill the given predicate.default <U> Gen
<U> Maps generated Ts to Us.static <T> Gen
<T> Chooses one of the given generators according to their frequency.static <T> Gen
<T> Chooses one of the given generators according to their frequency.static <T> Gen
<T> Chooses a Gen according to the given frequencies.Gen.intersperse
(Gen<T> other) Intersperse values from this generator instance with those of another.default <U> Gen
<U> Maps generated Ts to Us.static <T> Gen
<T> Gen.of
(T t) A generator which constantly returns t.static <T> Gen
<T> static <T> Gen
<T> Randomly chooses one of the given generators.static <T> Gen
<T> Randomly chooses one of the given generators.Methods in io.vavr.test with parameters of type GenModifier and TypeMethodDescriptionGen.intersperse
(Gen<T> other) Intersperse values from this generator instance with those of another.static <U> Arbitrary
<U> Generates an arbitrary value from a given generatorstatic <T> Gen
<T> Randomly chooses one of the given generators.Generates arbitrary strings based on a given alphabet represented by gen.Method parameters in io.vavr.test with type arguments of type GenModifier and TypeMethodDescriptiondefault <U> Gen
<U> Maps generated Ts to Us.static <T> Gen
<T> Chooses one of the given generators according to their frequency.static <T> Gen
<T> Chooses a Gen according to the given frequencies.static <T> Gen
<T> Randomly chooses one of the given generators.default <U> U
Transforms thisGen
.