com.wesleyhome.test.jupiter.ParameterPermutationsIterator 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 com.wesleyhome.common.utilities.ReflectionHelper;
import org.junit.jupiter.params.provider.Arguments;
import java.lang.reflect.Array;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.util.*;
import static com.wesleyhome.common.utilities.ReflectionHelper.invoke;
class ParameterPermutationsIterator implements Iterator {
private final Object[][] argumentsParametersArray;
private int[] argumentIndexPointers;
private long totalPermutations;
private int currentPermutation = 0;
ParameterPermutationsIterator(List> parameterOptions, Object testObject, List> dataProviderClasses) {
if (parameterOptions != null && !parameterOptions.isEmpty()) {
List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy