This repository has been archived on 2025-01-16. You can view files and clone it, but cannot push or open issues or pull requests.
AuD-2021-Exam-Prep/test/aud/exam/prep/DoubleListProvider.java

20 lines
565 B
Java
Raw Normal View History

2021-08-29 22:22:52 +02:00
package aud.exam.prep;
import org.junit.jupiter.api.extension.ExtensionContext;
import org.junit.jupiter.params.provider.Arguments;
import org.junit.jupiter.params.provider.ArgumentsProvider;
import java.util.stream.Stream;
public class DoubleListProvider implements ArgumentsProvider {
@Override
public Stream<? extends Arguments> provideArguments(ExtensionContext extensionContext) {
return Stream
.generate(() ->
Arguments.of(Tests.randomList(), Tests.randomList()))
.limit(Tests.STEAM_SIZE);
}
}