Sign in Go Pro

Mockito

Introduction to Mocks

 

Up next

Previous

About

Mockito Mocks

In this lesson, we'll explain how the Mockito.verify() method works and how it is used to verify that an interaction took place against a mock object. In particular, we'll highlight the errors you'll see if the interaction didn't occur as you expected, as well as the required syntax used when calling this method.

Summary of Content

  • The purpose of Mockito.verify()
  • How verify works
  • What errors you'll see when you expect an interaction that never happened
  • How to debug unexpected Mockito behavior
  • The correct syntax to use for Mockito.verify()

Links:

Instructor

Links

Comments

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

>
You need to go PRO to post comments.

Lessons in Mockito