When you’re testing a class, what do you do when its dependencies are final classes or contain final methods? The Mockito testing framework provides an “inline mock maker” for this purpose. This video shows how to use it, how the approaches change in different versions, and good practices for when to mock and when not to.
Mockito Made Clear: https://pragprog.com/titles/mockito/m...
Tales from the jar side newsletter: https://kenkousen.substack.com
Tales from the jar side videos: / @talesfromthejarside
Articles at Medium: / kenkousen
You can find Ken Kousen on Twitter at / kenkousen and on Mastodon at @[email protected].
00:00 - Introduction
00:31 - Documentation
04:39 - Mockito versions
06:27 - Constraints and Good Practices