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