Package net.jqwik.api.constraints
@NullMarked
package net.jqwik.api.constraints
-
ClassDescriptionConstrain the chars used to generate Strings or Characters to upper and lower case chars.Constrain the range of a generated "Big" number.Constrain the range of a generated byte or Byte parameters.Constrain the chars used to generate Strings or Characters to chars in the range from
from
toto
.Constrain the chars used to generate Strings or Characters to chars contained invalue
.Constrain the range of a generated double or Double parameters.Constrain the range of a generated float or Float parameters.Constrain the range of a generated int or Integer parameters.Constrain the range of a generated long or BigInteger parameters.Constrain the chars used to generate Strings or Characters to lower case chars.Constrain the range of a generated number to be less than 0.Constrain a string to never be blank, i.e. not empty and not just whitespace.Constrain the size of generated "sizable" types to be at least 1.Constrain the chars used to generate Strings or Characters to digits.Constrain the range of a generated number to be greater than 0.Use to constrain the maximum number of decimal places when generating decimal numbers.Constrain the range of a generated short or Short parameters.Constrain the size of generated "sizable" types.Constrain the length of generated Strings.Add a uniqueness constraint to a String parameter, i.e., there won't be any duplicate characters in a generated String.Add a uniqueness constraint to a Collection, Stream or Array parameter.Constrain the chars used to generate Strings or Characters to upper and lower case chars.Generate a value from the annotated class' or type's constructors or factory methods.Constrain the chars used to generate Strings or Characters to chars that will returntrue
forCharacter.isWhitespace(char)
.Allows jqwik to inject null parameters into generated values.