Klasse RandomGenerators
java.lang.Object
net.jqwik.engine.properties.arbitraries.randomized.RandomGenerators
-
Feldübersicht
Felder -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic net.jqwik.api.RandomGenerator<BigDecimal> bigDecimals(Range<BigDecimal> range, int scale, BigDecimal shrinkingTarget, net.jqwik.api.RandomDistribution distribution) static net.jqwik.api.RandomGenerator<BigInteger> bigIntegers(BigInteger min, BigInteger max, BigInteger shrinkingTarget, net.jqwik.api.RandomDistribution distribution) static net.jqwik.api.RandomGenerator<Character> chars(char min, char max) static net.jqwik.api.RandomGenerator<Character> choose(char[] characters) static <U extends @Nullable Object>
net.jqwik.api.RandomGenerator<U> static <U extends @Nullable Object>
net.jqwik.api.RandomGenerator<U> choose(U[] values) static <U extends @Nullable Object>
UchooseValue(List<? extends U> values, Random random) static intcollectionMaxSize(int minSize, Integer maxSize) static <T extends @Nullable Object>
net.jqwik.api.RandomGenerator<T> static <T extends @Nullable Object>
net.jqwik.api.RandomGenerator<T> static <T extends @Nullable Object>
net.jqwik.api.RandomGenerator<T> frequencyOf(List<? extends net.jqwik.api.Tuple.Tuple2<Integer, ? extends net.jqwik.api.Arbitrary<T>>> frequencies, int genSize, boolean withEmbeddedEdgeCases) static net.jqwik.api.RandomGenerator<Integer> integers(int min, int max) list(net.jqwik.api.RandomGenerator<T> elementGenerator, int minSize, int maxSize, long maxUniqueElements, int genSize, net.jqwik.api.RandomDistribution sizeDistribution, Set<? extends FeatureExtractor<T>> uniquenessExtractors, net.jqwik.api.Arbitrary<T> elementArbitrary) static <T extends @Nullable Object>
net.jqwik.api.RandomGenerator<T> static <T extends @Nullable Object>
net.jqwik.api.RandomGenerator<T> samples(T[] samples) static <T extends @Nullable Object>
net.jqwik.api.RandomGenerator<T> samplesFromShrinkables(List<? extends net.jqwik.api.Shrinkable<T>> samples) set(net.jqwik.api.RandomGenerator<T> elementGenerator, int minSize, int maxSize, int genSize, net.jqwik.api.Arbitrary<T> elementArbitrary) set(net.jqwik.api.RandomGenerator<T> elementGenerator, int minSize, int maxSize, int genSize, net.jqwik.api.RandomDistribution sizeDistribution, Set<? extends FeatureExtractor<T>> uniquenessExtractors, net.jqwik.api.Arbitrary<T> elementArbitrary) static net.jqwik.api.RandomGenerator<String> strings(net.jqwik.api.RandomGenerator<Character> elementGenerator, int minLength, int maxLength, long maxUniqueChars, int genSize, net.jqwik.api.RandomDistribution lengthDistribution, net.jqwik.api.Arbitrary<Character> characterArbitrary, boolean uniqueChars) static <T extends @Nullable Object>
net.jqwik.api.RandomGenerator<T> withEdgeCases(net.jqwik.api.RandomGenerator<T> self, int genSize, net.jqwik.api.EdgeCases<T> edgeCases)
-
Felddetails
-
DEFAULT_COLLECTION_SIZE
public static final int DEFAULT_COLLECTION_SIZE- Siehe auch:
-
-
Konstruktordetails
-
RandomGenerators
public RandomGenerators()
-
-
Methodendetails
-
collectionMaxSize
-
choose
-
chooseValue
-
choose
-
choose
-
chars
-
integers
-
bigIntegers
public static net.jqwik.api.RandomGenerator<BigInteger> bigIntegers(BigInteger min, BigInteger max, BigInteger shrinkingTarget, net.jqwik.api.RandomDistribution distribution) -
bigDecimals
public static net.jqwik.api.RandomGenerator<BigDecimal> bigDecimals(Range<BigDecimal> range, int scale, BigDecimal shrinkingTarget, net.jqwik.api.RandomDistribution distribution) -
oneOf
-
shuffle
-
strings
public static net.jqwik.api.RandomGenerator<String> strings(net.jqwik.api.RandomGenerator<Character> elementGenerator, int minLength, int maxLength, long maxUniqueChars, int genSize, net.jqwik.api.RandomDistribution lengthDistribution, net.jqwik.api.Arbitrary<Character> characterArbitrary, boolean uniqueChars) -
list
public static <T extends @Nullable Object> net.jqwik.api.RandomGenerator<List<T>> list(net.jqwik.api.RandomGenerator<T> elementGenerator, int minSize, int maxSize, long maxUniqueElements, int genSize, net.jqwik.api.RandomDistribution sizeDistribution, Set<? extends FeatureExtractor<T>> uniquenessExtractors, net.jqwik.api.Arbitrary<T> elementArbitrary) -
set
-
set
public static <T extends @Nullable Object> net.jqwik.api.RandomGenerator<Set<T>> set(net.jqwik.api.RandomGenerator<T> elementGenerator, int minSize, int maxSize, int genSize, net.jqwik.api.RandomDistribution sizeDistribution, Set<? extends FeatureExtractor<T>> uniquenessExtractors, net.jqwik.api.Arbitrary<T> elementArbitrary) -
samplesFromShrinkables
-
samples
-
frequency
-
frequencyOf
-
withEdgeCases
public static <T extends @Nullable Object> net.jqwik.api.RandomGenerator<T> withEdgeCases(net.jqwik.api.RandomGenerator<T> self, int genSize, net.jqwik.api.EdgeCases<T> edgeCases) -
fail
-