All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.jqwik.engine.properties.PurelyRandomShrinkablesGenerator Maven / Gradle / Ivy

There is a newer version: 1.9.1
Show newest version
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 LinkedHashMap<>();
		return parameterGenerators
				   .stream()
				   .map(generator -> generator.next(random, generatorsCache))
				   .collect(Collectors.toList());
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy