net.jqwik.engine.properties.PurelyRandomShrinkablesGenerator Maven / Gradle / Ivy
package net.jqwik.engine.properties;
import java.util.*;
import java.util.stream.*;
import net.jqwik.api.*;
import net.jqwik.api.providers.*;
class PurelyRandomShrinkablesGenerator {
private final List parameterGenerators;
PurelyRandomShrinkablesGenerator(List parameterGenerators) {
this.parameterGenerators = parameterGenerators;
}
List> generateNext(Random random) {
Map> generatorsCache = new HashMap<>();
return parameterGenerators
.stream()
.map(generator -> generator.next(random, generatorsCache))
.collect(Collectors.toList());
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy