Property1
class in io.proptastic
class Property1<A>A property over 1 draw, from forAll. Pin examples, then .check: examples run
first, don’t count toward the tries and never shrink.
Methods
example
Property1<A> example(A a)One example, run before the random tries.
examples
Property1<A> examples(Collection<? extends A> values)Each of values as an example: the list a @FieldSource test reads too.
check
void check(Property1.Check<A> check)Runs the property now: throws with the shrunk counterexample if check fails.
follows
void follows(Model model, Property1.Answer<A> answer)Runs the property against model: for each try, the code’s answer must be the
one the model allows, and every outcome the model names must come up, or be .unreachable. A pass prints what was followed.