Sign in Go Pro


Introduction to Mocks


Up next



#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: - -

Lessons in Mockito