I'm trying to randomize an object: Map<Author, List> with easyRandom for testing.
For the moment I haven't get my code to compile. So my code is something like:
MapRandomizer<Author, List<Book>> mapRandomizer = new MapRandomizer<>(Author.class, ArrayList<Book>.class);
Map<Author, List<Book>> map = mapRandomizer.getRandomValue();
But I don't know how to put the list (ArrayList.class???) as a parameter of the mapRandomizer.
Does anyone knows how to get my code to compile and create a random object of type: Map<Author, List>?
Thank you,
Right now I'm trying to do it the long way: