samedi 28 avril 2018

Mockito expcetion

I am new with testing. I have tried this one but got an exception.

@Mock
private Context context;    
when(service.getResult(any(), context)).thenReturn(new ArrayList<>());

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: 
Invalid use of argument matchers!
2 matchers expected, 1 recorded:

Aucun commentaire:

Enregistrer un commentaire