
com.wesleyhome.test.jupiter.StreamHelper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of junit-jupiter-params-generated Show documentation
Show all versions of junit-jupiter-params-generated Show documentation
Library to help generate test parameter permutations for parameterized tests in JUnit.
This version is an initial attempt to convert to building with Gradle.
package com.wesleyhome.test.jupiter;
import java.util.stream.Stream;
public class StreamHelper {
@SafeVarargs
public static Stream concat(Stream... streams) {
return Stream.of(streams).reduce(Stream::concat).orElseGet(Stream::empty);
}
public static Stream stream(T first, T[] others) {
return concat(Stream.of(first), Stream.of(others));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy