com.alwa.spread.ListSpread Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spread Show documentation
Show all versions of spread Show documentation
Spread. Its an ergonomic helper library for building Java Test Objects
package com.alwa.spread;
import java.util.ArrayList;
import java.util.List;
import java.util.function.Function;
import java.util.stream.Collectors;
public class ListSpread extends Spread {
private final int steps;
public ListSpread(
Function, ?> stepFunction,
Function, ?> mapFunction,
int steps,
Object... seedsOrExamples) {
super(stepFunction, mapFunction, seedsOrExamples);
this.steps = steps;
}
@Override
protected Object applyStep(int totalSteps,
int currentStep,
Function