Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- and(Checkable) - Method in interface io.vavr.test.Checkable
-
Returns a new Checkable which is satisfied if this Checkable and the given checkable are satisfied.
- apply(int) - Method in interface io.vavr.test.Arbitrary
-
Returns a generator for objects of type T.
- apply(Random) - Method in interface io.vavr.test.Gen
-
Functional interface of this generator.
- arbitrary() - Method in interface io.vavr.test.Gen
-
Converts this Gen to an Arbitrary
- Arbitrary<T> - Interface in io.vavr.test
-
Represents an arbitrary object of type T.
- assertIsErroneous() - Method in interface io.vavr.test.CheckResult
-
Asserts that this CheckResult is erroneous.
- assertIsFalsified() - Method in interface io.vavr.test.CheckResult
-
Asserts that this CheckResult is falsified.
- assertIsSatisfied() - Method in interface io.vavr.test.CheckResult
-
Asserts that this CheckResult is satisfied.
- assertIsSatisfiedWithExhaustion(boolean) - Method in interface io.vavr.test.CheckResult
-
Asserts that this CheckResult is satisfied with a given exhausted state.
C
- check() - Method in interface io.vavr.test.Checkable
-
Checks this property using the default random number generator
Checkable.RNG
by callingCheckable.check(int, int)
, where size isCheckable.DEFAULT_SIZE
and tries isCheckable.DEFAULT_TRIES
. - check(int, int) - Method in interface io.vavr.test.Checkable
-
Checks this property using the default random number generator
Checkable.RNG
. - check(Random, int, int) - Method in interface io.vavr.test.Checkable
-
Checks this property.
- check(Random, int, int) - Method in class io.vavr.test.Property.Property1
- check(Random, int, int) - Method in class io.vavr.test.Property.Property2
- check(Random, int, int) - Method in class io.vavr.test.Property.Property3
- check(Random, int, int) - Method in class io.vavr.test.Property.Property4
- check(Random, int, int) - Method in class io.vavr.test.Property.Property5
- check(Random, int, int) - Method in class io.vavr.test.Property.Property6
- check(Random, int, int) - Method in class io.vavr.test.Property.Property7
- check(Random, int, int) - Method in class io.vavr.test.Property.Property8
- Checkable - Interface in io.vavr.test
-
Interface for checkable properties, allowing composition via Checkable.and(Checkable) and Checkable.or(Checkable).
- CheckResult - Interface in io.vavr.test
-
Represents the result of a property check which is
Satisfied
, if all tests satisfied the given propertyFalsified
, if a counter-example could be discovered that falsified the given propertyErroneous
, if an exception occurred executing the property check Please note that aSatisfied
property check may beExhausted
, if the property is an implication and no sample could be found that satisfied the pre-condition. - CheckResult.Erroneous - Class in io.vavr.test
-
Represents an erroneous property check.
- CheckResult.Falsified - Class in io.vavr.test
-
Represents a falsified property check.
- CheckResult.Satisfied - Class in io.vavr.test
-
Represents a satisfied property check.
- choose(char...) - Static method in interface io.vavr.test.Gen
-
Chooses a char from all chars in the array
- choose(char, char) - Static method in interface io.vavr.test.Gen
-
Chooses a char between min and max, bounds inclusive and chars distributed according to the underlying random number generator.
- choose(double, double) - Static method in interface io.vavr.test.Gen
-
Chooses a double between min and max, bounds inclusive and numbers distributed according to the distribution of the underlying random number generator.
- choose(int, int) - Static method in interface io.vavr.test.Gen
-
Chooses an int between min and max, bounds inclusive and numbers distributed according to the distribution of the underlying random number generator.
- choose(long, long) - Static method in interface io.vavr.test.Gen
-
Chooses a long between min and max, bounds inclusive and numbers distributed according to the distribution of the underlying random number generator.
- choose(Class<T>) - Static method in interface io.vavr.test.Gen
-
Chooses an enum value from all the enum constants defined in the enumerated type.
- choose(Iterable<T>) - Static method in interface io.vavr.test.Gen
-
Chooses a value from all values in the iterable
- choose(T...) - Static method in interface io.vavr.test.Gen
-
Chooses a value from all values in the array.
- count() - Method in interface io.vavr.test.CheckResult
-
The number of checks performed using random generated input data.
- count() - Method in class io.vavr.test.CheckResult.Erroneous
- count() - Method in class io.vavr.test.CheckResult.Falsified
- count() - Method in class io.vavr.test.CheckResult.Satisfied
D
- def(String) - Static method in class io.vavr.test.Property
-
Defines a new Property.
- DEFAULT_SIZE - Static variable in interface io.vavr.test.Checkable
-
Default size hint for generators: 100
- DEFAULT_TRIES - Static variable in interface io.vavr.test.Checkable
-
Default tries to check a property: 1000
- distinct() - Method in interface io.vavr.test.Arbitrary
-
Returns an Arbitrary based on this Arbitrary which produces unique values.
- distinctBy(Comparator<? super T>) - Method in interface io.vavr.test.Arbitrary
-
Returns an Arbitrary based on this Arbitrary which produces unique values based on the given comparator.
- distinctBy(Function<? super T, ? extends U>) - Method in interface io.vavr.test.Arbitrary
-
Returns an Arbitrary based on this Arbitrary which produces unique values based on the given function.
E
- equals(Object) - Method in class io.vavr.test.CheckResult.Erroneous
- equals(Object) - Method in class io.vavr.test.CheckResult.Falsified
- equals(Object) - Method in class io.vavr.test.CheckResult.Satisfied
- error() - Method in class io.vavr.test.CheckResult.Erroneous
- error() - Method in interface io.vavr.test.CheckResult
-
An optional error.
- error() - Method in class io.vavr.test.CheckResult.Falsified
- error() - Method in class io.vavr.test.CheckResult.Satisfied
F
- fail() - Static method in interface io.vavr.test.Gen
-
A failing generator which throws a RuntimeException("failed").
- fail(String) - Static method in interface io.vavr.test.Gen
-
A failing generator which throws a RuntimeException.
- filter(Predicate<? super T>) - Method in interface io.vavr.test.Arbitrary
-
Returns an Arbitrary based on this Arbitrary which produces values that fulfill the given predicate.
- filter(Predicate<? super T>) - Method in interface io.vavr.test.Gen
-
Returns a generator based on this generator which produces values that fulfill the given predicate.
- flatMap(Function<? super T, ? extends Arbitrary<? extends U>>) - Method in interface io.vavr.test.Arbitrary
-
Maps arbitrary objects T to arbitrary object U.
- flatMap(Function<? super T, ? extends Gen<? extends U>>) - Method in interface io.vavr.test.Gen
-
Maps generated Ts to Us.
- forAll(Arbitrary<T1>) - Method in class io.vavr.test.Property
-
Returns a logical for all quantor of 1 given variables.
- forAll(Arbitrary<T1>, Arbitrary<T2>) - Method in class io.vavr.test.Property
-
Returns a logical for all quantor of 2 given variables.
- forAll(Arbitrary<T1>, Arbitrary<T2>, Arbitrary<T3>) - Method in class io.vavr.test.Property
-
Returns a logical for all quantor of 3 given variables.
- forAll(Arbitrary<T1>, Arbitrary<T2>, Arbitrary<T3>, Arbitrary<T4>) - Method in class io.vavr.test.Property
-
Returns a logical for all quantor of 4 given variables.
- forAll(Arbitrary<T1>, Arbitrary<T2>, Arbitrary<T3>, Arbitrary<T4>, Arbitrary<T5>) - Method in class io.vavr.test.Property
-
Returns a logical for all quantor of 5 given variables.
- forAll(Arbitrary<T1>, Arbitrary<T2>, Arbitrary<T3>, Arbitrary<T4>, Arbitrary<T5>, Arbitrary<T6>) - Method in class io.vavr.test.Property
-
Returns a logical for all quantor of 6 given variables.
- forAll(Arbitrary<T1>, Arbitrary<T2>, Arbitrary<T3>, Arbitrary<T4>, Arbitrary<T5>, Arbitrary<T6>, Arbitrary<T7>) - Method in class io.vavr.test.Property
-
Returns a logical for all quantor of 7 given variables.
- forAll(Arbitrary<T1>, Arbitrary<T2>, Arbitrary<T3>, Arbitrary<T4>, Arbitrary<T5>, Arbitrary<T6>, Arbitrary<T7>, Arbitrary<T8>) - Method in class io.vavr.test.Property
-
Returns a logical for all quantor of 8 given variables.
- frequency(Tuple2<Integer, Gen<T>>...) - Static method in interface io.vavr.test.Gen
-
Chooses one of the given generators according to their frequency.
- frequency(Iterable<Tuple2<Integer, Gen<T>>>) - Static method in interface io.vavr.test.Gen
-
Chooses one of the given generators according to their frequency.
G
- Gen<T> - Interface in io.vavr.test
-
Generators are the building blocks for providing arbitrary objects.
H
- hashCode() - Method in class io.vavr.test.CheckResult.Erroneous
- hashCode() - Method in class io.vavr.test.CheckResult.Falsified
- hashCode() - Method in class io.vavr.test.CheckResult.Satisfied
I
- implies(CheckedFunction1<T1, Boolean>) - Method in class io.vavr.test.Property.Property1
-
Returns an implication which composes this Property as pre-condition and a given post-condition.
- implies(CheckedFunction2<T1, T2, Boolean>) - Method in class io.vavr.test.Property.Property2
-
Returns an implication which composes this Property as pre-condition and a given post-condition.
- implies(CheckedFunction3<T1, T2, T3, Boolean>) - Method in class io.vavr.test.Property.Property3
-
Returns an implication which composes this Property as pre-condition and a given post-condition.
- implies(CheckedFunction4<T1, T2, T3, T4, Boolean>) - Method in class io.vavr.test.Property.Property4
-
Returns an implication which composes this Property as pre-condition and a given post-condition.
- implies(CheckedFunction5<T1, T2, T3, T4, T5, Boolean>) - Method in class io.vavr.test.Property.Property5
-
Returns an implication which composes this Property as pre-condition and a given post-condition.
- implies(CheckedFunction6<T1, T2, T3, T4, T5, T6, Boolean>) - Method in class io.vavr.test.Property.Property6
-
Returns an implication which composes this Property as pre-condition and a given post-condition.
- implies(CheckedFunction7<T1, T2, T3, T4, T5, T6, T7, Boolean>) - Method in class io.vavr.test.Property.Property7
-
Returns an implication which composes this Property as pre-condition and a given post-condition.
- implies(CheckedFunction8<T1, T2, T3, T4, T5, T6, T7, T8, Boolean>) - Method in class io.vavr.test.Property.Property8
-
Returns an implication which composes this Property as pre-condition and a given post-condition.
- integer() - Static method in interface io.vavr.test.Arbitrary
-
Generates arbitrary integer values.
- intersperse(Arbitrary<T>) - Method in interface io.vavr.test.Arbitrary
-
Intersperses values from this arbitrary instance with those of another.
- intersperse(Gen<T>) - Method in interface io.vavr.test.Gen
-
Intersperse values from this generator instance with those of another.
- io.vavr.test - package io.vavr.test
-
A property check framework built around Property which integrates well with unit test frameworks like junit.
- isErroneous() - Method in class io.vavr.test.CheckResult.Erroneous
- isErroneous() - Method in class io.vavr.test.CheckResult.Falsified
- isErroneous() - Method in interface io.vavr.test.CheckResult
-
If this check result is erroneous as specified above.
- isErroneous() - Method in class io.vavr.test.CheckResult.Satisfied
- isExhausted() - Method in class io.vavr.test.CheckResult.Erroneous
- isExhausted() - Method in class io.vavr.test.CheckResult.Falsified
- isExhausted() - Method in interface io.vavr.test.CheckResult
-
If this check result is exhausted as specified above.
- isExhausted() - Method in class io.vavr.test.CheckResult.Satisfied
- isFalsified() - Method in class io.vavr.test.CheckResult.Erroneous
- isFalsified() - Method in class io.vavr.test.CheckResult.Falsified
- isFalsified() - Method in interface io.vavr.test.CheckResult
-
If this check result is falsified as specified above.
- isFalsified() - Method in class io.vavr.test.CheckResult.Satisfied
- isSatisfied() - Method in class io.vavr.test.CheckResult.Erroneous
- isSatisfied() - Method in class io.vavr.test.CheckResult.Falsified
- isSatisfied() - Method in interface io.vavr.test.CheckResult
-
If this check result is satisfied as specified above.
- isSatisfied() - Method in class io.vavr.test.CheckResult.Satisfied
L
- list(Arbitrary<T>) - Static method in interface io.vavr.test.Arbitrary
-
Generates arbitrary lists based on a given element generator arbitraryT.
- localDateTime() - Static method in interface io.vavr.test.Arbitrary
-
Generates arbitrary
LocalDateTime
s withLocalDateTime.now()
asmedian
andChronoUnit.DAYS
as chronological unit. - localDateTime(LocalDateTime, ChronoUnit) - Static method in interface io.vavr.test.Arbitrary
-
Generates arbitrary
LocalDateTime
s. - localDateTime(ChronoUnit) - Static method in interface io.vavr.test.Arbitrary
M
- map(Function<? super T, ? extends U>) - Method in interface io.vavr.test.Arbitrary
-
Maps arbitrary objects T to arbitrary object U.
- map(Function<? super T, ? extends U>) - Method in interface io.vavr.test.Gen
-
Maps generated Ts to Us.
O
- of(T) - Static method in interface io.vavr.test.Gen
-
A generator which constantly returns t.
- of(T, Function<? super T, ? extends T>) - Static method in interface io.vavr.test.Gen
- of(U...) - Static method in interface io.vavr.test.Arbitrary
-
Generates an arbitrary value from a fixed set of values
- ofAll(Gen<U>) - Static method in interface io.vavr.test.Arbitrary
-
Generates an arbitrary value from a given generator
- oneOf(Gen<T>...) - Static method in interface io.vavr.test.Gen
-
Randomly chooses one of the given generators.
- oneOf(Iterable<Gen<T>>) - Static method in interface io.vavr.test.Gen
-
Randomly chooses one of the given generators.
- or(Checkable) - Method in interface io.vavr.test.Checkable
-
Returns a new Checkable which is satisfied if this Checkable or the given checkable are satisfied.
P
- peek(Consumer<? super T>) - Method in interface io.vavr.test.Arbitrary
- peek(Consumer<? super T>) - Method in interface io.vavr.test.Gen
- Property - Class in io.vavr.test
-
A property builder which provides a fluent API to build checkable properties.
- Property.ForAll1<T1> - Class in io.vavr.test
-
Represents a logical for all quantor.
- Property.ForAll2<T1,
T2> - Class in io.vavr.test -
Represents a logical for all quantor.
- Property.ForAll3<T1,
T2, - Class in io.vavr.testT3> -
Represents a logical for all quantor.
- Property.ForAll4<T1,
T2, - Class in io.vavr.testT3, T4> -
Represents a logical for all quantor.
- Property.ForAll5<T1,
T2, - Class in io.vavr.testT3, T4, T5> -
Represents a logical for all quantor.
- Property.ForAll6<T1,
T2, - Class in io.vavr.testT3, T4, T5, T6> -
Represents a logical for all quantor.
- Property.ForAll7<T1,
T2, - Class in io.vavr.testT3, T4, T5, T6, T7> -
Represents a logical for all quantor.
- Property.ForAll8<T1,
T2, - Class in io.vavr.testT3, T4, T5, T6, T7, T8> -
Represents a logical for all quantor.
- Property.Property1<T1> - Class in io.vavr.test
-
Represents a 1-ary checkable property.
- Property.Property2<T1,
T2> - Class in io.vavr.test -
Represents a 2-ary checkable property.
- Property.Property3<T1,
T2, - Class in io.vavr.testT3> -
Represents a 3-ary checkable property.
- Property.Property4<T1,
T2, - Class in io.vavr.testT3, T4> -
Represents a 4-ary checkable property.
- Property.Property5<T1,
T2, - Class in io.vavr.testT3, T4, T5> -
Represents a 5-ary checkable property.
- Property.Property6<T1,
T2, - Class in io.vavr.testT3, T4, T5, T6> -
Represents a 6-ary checkable property.
- Property.Property7<T1,
T2, - Class in io.vavr.testT3, T4, T5, T6, T7> -
Represents a 7-ary checkable property.
- Property.Property8<T1,
T2, - Class in io.vavr.testT3, T4, T5, T6, T7, T8> -
Represents a 8-ary checkable property.
- propertyName() - Method in class io.vavr.test.CheckResult.Erroneous
- propertyName() - Method in class io.vavr.test.CheckResult.Falsified
- propertyName() - Method in interface io.vavr.test.CheckResult
-
The name of the checked property this result refers to.
- propertyName() - Method in class io.vavr.test.CheckResult.Satisfied
R
- RNG - Static variable in interface io.vavr.test.Checkable
-
A thread-safe, equally distributed random number generator.
S
- sample() - Method in class io.vavr.test.CheckResult.Erroneous
- sample() - Method in class io.vavr.test.CheckResult.Falsified
- sample() - Method in interface io.vavr.test.CheckResult
-
An optional sample which falsified the property or which lead to an error.
- sample() - Method in class io.vavr.test.CheckResult.Satisfied
- stream(Arbitrary<T>) - Static method in interface io.vavr.test.Arbitrary
-
Generates arbitrary streams based on a given element generator arbitraryT.
- string(Gen<Character>) - Static method in interface io.vavr.test.Arbitrary
-
Generates arbitrary strings based on a given alphabet represented by gen.
- suchThat(CheckedFunction1<T1, Boolean>) - Method in class io.vavr.test.Property.ForAll1
-
Returns a checkable property that checks values of the 1 variables of this
ForAll
quantor. - suchThat(CheckedFunction2<T1, T2, Boolean>) - Method in class io.vavr.test.Property.ForAll2
-
Returns a checkable property that checks values of the 2 variables of this
ForAll
quantor. - suchThat(CheckedFunction3<T1, T2, T3, Boolean>) - Method in class io.vavr.test.Property.ForAll3
-
Returns a checkable property that checks values of the 3 variables of this
ForAll
quantor. - suchThat(CheckedFunction4<T1, T2, T3, T4, Boolean>) - Method in class io.vavr.test.Property.ForAll4
-
Returns a checkable property that checks values of the 4 variables of this
ForAll
quantor. - suchThat(CheckedFunction5<T1, T2, T3, T4, T5, Boolean>) - Method in class io.vavr.test.Property.ForAll5
-
Returns a checkable property that checks values of the 5 variables of this
ForAll
quantor. - suchThat(CheckedFunction6<T1, T2, T3, T4, T5, T6, Boolean>) - Method in class io.vavr.test.Property.ForAll6
-
Returns a checkable property that checks values of the 6 variables of this
ForAll
quantor. - suchThat(CheckedFunction7<T1, T2, T3, T4, T5, T6, T7, Boolean>) - Method in class io.vavr.test.Property.ForAll7
-
Returns a checkable property that checks values of the 7 variables of this
ForAll
quantor. - suchThat(CheckedFunction8<T1, T2, T3, T4, T5, T6, T7, T8, Boolean>) - Method in class io.vavr.test.Property.ForAll8
-
Returns a checkable property that checks values of the 8 variables of this
ForAll
quantor.
T
- toString() - Method in class io.vavr.test.CheckResult.Erroneous
- toString() - Method in class io.vavr.test.CheckResult.Falsified
- toString() - Method in class io.vavr.test.CheckResult.Satisfied
- transform(Function<? super Arbitrary<T>, ? extends U>) - Method in interface io.vavr.test.Arbitrary
-
Transforms this
Arbitrary
. - transform(Function<? super Gen<T>, ? extends U>) - Method in interface io.vavr.test.Gen
-
Transforms this
Gen
.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form