What are mocks and stubs in Mockito? How do mocks help? When should you use them in tests, and how can they make your testing job easier? We look at a simple publisher/subscriber system that shows how mocks solve a difficult testing problem.
00:00 - First Marker
00:43 - Publishers and subscribers
02:26 - Mocks and stubs defined
03:23 - Using mocks in tests
04:51 - Misbehaving subscribers
06:25 - Overspecifying: A Warning