Tag Archives: mockito

Verify method was called n-times with Mockito

Mockito Verify example for n-times calls using various verification modes. Continue reading

Posted in Testing | Tagged , , , | Leave a comment

3 basic mistakes for NullPointerException when Mock

You might get NullPointerException exception when you try to mock object in your tests. This article is a short list of 3 most common reasons why this might be happening.

Posted in Testing | Tagged , , | 5 Comments