@Target(value={PARAMETER,FIELD,ANNOTATION_TYPE,TYPE_USE}) @Retention(value=RUNTIME) @Repeatable(value=Produced.class) public @interface From
Mark a parameter of a Property
method with this annotation to
have random values supplied to it via the specified
Generator
.
You may specify as many of these annotations as as you wish on a given
parameter. On a given generation, one of the specified generators will be
chosen at random with probability in proportion to frequency()
.
If any such generator produces values of a type incompatible with the
type of the marked parameter, IllegalArgumentException
is
raised.
© Copyright 2010-2016 Paul R. Holser, Jr. All rights reserved. Licensed under The MIT License. pholser@alumni.rice.edu