Sign in Go Pro

Mockito

Verifying a Method Was Never Called

This lesson is for PRO members.

Upgrade today to get access to all the PRO lessons.

Unlock this lesson

Up next

Previous

About

### Mockito Mocks In this lesson, we'll explain how the `never()` verification mode works and how it is used to verify that a method was never called. #### Summary of Content - The default implementation of `Mockito.verify()` - Customising the verification using Verification Modes - Overloaded method for `Mockito.verify()` which accepts a way of specifying that a method should never be called - How to use the `never()` verification mode to verify a method was never called

Lessons in Mockito