mardi 31 juillet 2018

Method threw 'org.mockito.exceptions.misusing.InvalidUseOfMatchersException' exception.

I'm trying to test this method, however I am getting the following error:

Method threw 'org.mockito.exceptions.misusing.InvalidUseOfMatchersException' exception. 

On this line of Code:

    when(tester.method(
            any(String.class), any(LocalDate.class), any(boolean.class),any(boolean.class), any(String.class))).thenReturn(item);

Aucun commentaire:

Enregistrer un commentaire