Im trying to write a unit test, whereby a call returns a List.. but i cant seem to be able to use :
Mockito.any(List.class)
how can i do this? any ideas?.. any tutorials
Mockito.when(abilityRepository.findRandomAbilitySetForEventLogic(eventLogic, pageableForSingleResult)).thenReturn(abilitySetIds);
The javadoc and tutorials show that
anyis a matcher, not something to return. I believe what you want to do is:Of course I made up some names, but that’s the idea.