Transcript
00:00 Mocking is nothing new in the world of automated testing. In fact, it's been officially introduced more than two decades ago. And if you go search for mocking online, you can find all sorts of different techniques and best practices how to mock anything in tests. You usually reach out to mocking for different reasons. To create a proper test setup, to handle dependencies introduced by your tested code,
00:20 as well as its complexity, maybe to eliminate unwanted side effects. And those are all great techniques to have, but they fall short without you understanding what's the purpose behind them. Why are you even adding this mock in your test? And most importantly, what would this mock do to your tested code?
00:38 Those are precisely the questions you're going to learn the answers to in this exercise block.