net.jqwik.engine.facades.CombinatorsFacadeImpl Maven / Gradle / Ivy
package net.jqwik.engine.facades;
import java.util.*;
import java.util.function.*;
import net.jqwik.api.*;
import net.jqwik.engine.properties.arbitraries.*;
import net.jqwik.engine.properties.arbitraries.exhaustive.*;
import net.jqwik.engine.properties.shrinking.*;
/**
* Is loaded through reflection in api module
*/
public class CombinatorsFacadeImpl extends Combinators.CombinatorsFacade {
@Override
public Shrinkable combineShrinkables(
List> shrinkables, Function, R> combineFunction
) {
return new CombinedShrinkable<>(shrinkables, combineFunction);
}
@Override
public Optional> combineExhaustive(
List> arbitraries,
Function, R> combineFunction,
long maxNumberOfSamples
) {
return ExhaustiveGenerators.combine(arbitraries, combineFunction, maxNumberOfSamples);
}
@Override
public EdgeCases combineEdgeCases(
final List> arbitraries,
final Function, R> combineFunction,
int maxEdgeCases
) {
return EdgeCasesSupport.combine(arbitraries, combineFunction, maxEdgeCases);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy