I get java.lang.NullPointerException with this following code:
java.lang.NullPointerException
@Mock SomeClass retObj; when(obj.getXXXX()).thenReturn(retObj); // obj.getXXXX() shows null in other methods
It used to work fine in Mockito 1.
Aucun commentaire:
Enregistrer un commentaire