Mockito offers:

when(mock.process(Matchers.any(List.class)));

How to avoid warning if process takes a List<Bar> instead?

4 Answers
4

Leave a Reply

Your email address will not be published. Required fields are marked *