Sign in Go Pro


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



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




There are no comments on this lesson, start the conversation below ...

You need to go PRO to post comments.

Lessons in Mockito