And usually with Mockito it means that a mock was invoked with the wrong arguments. It’s a more permissive way of testing; the restrictive way is to throw a particular exception when a mock is invoked with the wrong arguments instead of returning null
. In any case, it usually doesn’t mean that the tested code is expected handle null
s.
1 Like