I would like to parametrize test, with Junit 5, which should call such method:
service.doSomething(List<Person> persons, int amount);
Assume that Person class look like that:
Class Person {
PersonId id;
String name;
}
Problem is with a List <Person>. I'm not sure how should I parametrize that, use some converter to convert Person values to some primitice or use ArgumentsAgrragator? Additionaly Person conain another Object (PersonId) which need to be handled as well.
Do you have some advices for me how to do that?