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

com.wesleyhome.test.jupiter.StreamHelper Maven / Gradle / Ivy

Go to download

Library to help generate test parameter permutations for parameterized tests in JUnit. This version is an initial attempt to convert to building with Gradle.

There is a newer version: 3.0.0
Show newest version
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