I have two ArrayList<> Objects of equal lengths, and my Junit5 parameterized test has the syntax:
@ParamterizedTest
@MethodSource("dummyfunction");
void functionName(String s1, String s2)
{
.....
.....
}
private Stream<Arguments> dummyfunction()
{
ArrayList<String> arr1;
ArrayList<String> arr2;
.....
.....
return something;
}
How can I return the elements from each ArrayList so that one list provides s1 and the other provide s2 as per the functionName function?
Naiv solution that prints
with the following implementation