Uses of Interface
io.vavr.test.Arbitrary
Packages that use Arbitrary
Package
Description
A property check framework built around Property which integrates well with unit test frameworks like junit.
-
Uses of Arbitrary in io.vavr.test
Methods in io.vavr.test that return ArbitraryModifier and TypeMethodDescriptionGen.arbitrary()Converts this Gen to an ArbitraryArbitrary.distinct()Returns an Arbitrary based on this Arbitrary which produces unique values.Arbitrary.distinctBy(Comparator<? super T> comparator) Returns an Arbitrary based on this Arbitrary which produces unique values based on the given comparator.Arbitrary.distinctBy(Function<? super T, ? extends U> keyExtractor) Returns an Arbitrary based on this Arbitrary which produces unique values based on the given function.Returns an Arbitrary based on this Arbitrary which produces values that fulfill the given predicate.default <U> Arbitrary<U> Maps arbitrary objects T to arbitrary object U.Arbitrary.integer()Generates arbitrary integer values.Arbitrary.intersperse(Arbitrary<T> other) Intersperses values from this arbitrary instance with those of another.Generates arbitrary lists based on a given element generator arbitraryT.static Arbitrary<LocalDateTime> Arbitrary.localDateTime()Generates arbitraryLocalDateTimes withLocalDateTime.now()asmedianandChronoUnit.DAYSas chronological unit.static Arbitrary<LocalDateTime> Arbitrary.localDateTime(LocalDateTime median, ChronoUnit unit) Generates arbitraryLocalDateTimes.static Arbitrary<LocalDateTime> Arbitrary.localDateTime(ChronoUnit unit) default <U> Arbitrary<U> Maps arbitrary objects T to arbitrary object U.static <U> Arbitrary<U> Arbitrary.of(U... values) Generates an arbitrary value from a fixed set of valuesstatic <U> Arbitrary<U> Generates an arbitrary value from a given generatorGenerates arbitrary streams based on a given element generator arbitraryT.Generates arbitrary strings based on a given alphabet represented by gen.Methods in io.vavr.test with parameters of type ArbitraryModifier and TypeMethodDescription<T1> Property.ForAll1<T1> Returns a logical for all quantor of 1 given variables.<T1,T2> Property.ForAll2 <T1, T2> Returns a logical for all quantor of 2 given variables.<T1,T2, T3> Property.ForAll3 <T1, T2, T3> Returns a logical for all quantor of 3 given variables.<T1,T2, T3, T4>
Property.ForAll4<T1, T2, T3, T4> Returns a logical for all quantor of 4 given variables.<T1,T2, T3, T4, T5>
Property.ForAll5<T1, T2, T3, T4, T5> Property.forAll(Arbitrary<T1> a1, Arbitrary<T2> a2, Arbitrary<T3> a3, Arbitrary<T4> a4, Arbitrary<T5> a5) Returns a logical for all quantor of 5 given variables.<T1,T2, T3, T4, T5, T6>
Property.ForAll6<T1, T2, T3, T4, T5, T6> Property.forAll(Arbitrary<T1> a1, Arbitrary<T2> a2, Arbitrary<T3> a3, Arbitrary<T4> a4, Arbitrary<T5> a5, Arbitrary<T6> a6) Returns a logical for all quantor of 6 given variables.<T1,T2, T3, T4, T5, T6, T7>
Property.ForAll7<T1, T2, T3, T4, T5, T6, T7> Property.forAll(Arbitrary<T1> a1, Arbitrary<T2> a2, Arbitrary<T3> a3, Arbitrary<T4> a4, Arbitrary<T5> a5, Arbitrary<T6> a6, Arbitrary<T7> a7) Returns a logical for all quantor of 7 given variables.<T1,T2, T3, T4, T5, T6, T7, T8>
Property.ForAll8<T1, T2, T3, T4, T5, T6, T7, T8> Property.forAll(Arbitrary<T1> a1, Arbitrary<T2> a2, Arbitrary<T3> a3, Arbitrary<T4> a4, Arbitrary<T5> a5, Arbitrary<T6> a6, Arbitrary<T7> a7, Arbitrary<T8> a8) Returns a logical for all quantor of 8 given variables.Arbitrary.intersperse(Arbitrary<T> other) Intersperses values from this arbitrary instance with those of another.Generates arbitrary lists based on a given element generator arbitraryT.Generates arbitrary streams based on a given element generator arbitraryT.Method parameters in io.vavr.test with type arguments of type Arbitrary