What's the proper Mockito matcher for the second parameter in this method Signature:
List<Something> findSomething(Object o, Integer... ids);
I tried the following matchers:
when(findSomething(any(), anyInt())).thenReturn(listOfSomething);
when(findSomething(any(), any())).thenReturn(listOfSomething);
but Mockito is not creating the proxy for me, the returned List is empty.
Aucun commentaire:
Enregistrer un commentaire