Every single team I have these days in my training sessions relies on mocks to unit test their code to a fine-grained level. This 90% live-coding event aims to cover the basics of Mocking for those of you that had little or no contact with these techniques. I’ll write the code in my native language (Java) and I will demonstrate the Mockito framework - by far the most widespread mocking library in Java today. However, at the end I’ll point you to equivalent frameworks that offer you the same features in other languages, like php, js and c#.
Agenda:
- Stubbing Methods
- Mocking Methods
- Stubbing Dynamic Responses
- Retries and Delays
- Argument Matching
- Spies (partial mocks)
- Mocking Statics
- Integration with JUnit4/5
This walkthrough provides an overview of the most used features in mocking. For a more in-depth debate about the best practices regarding mocks and how to write maintainable tests using mocks, you can register for my upcoming Live Webinar on Teachable:
8 views
729
320
2 weeks ago 00:04:49 1
Play To Earn🔥This New Play to Earn Game is About to Make a Lot of People RICH
3 weeks ago 00:26:26 1
LEGO Horizon Adventures PS5 Pro Gameplay - Thunderjaw Boss Fight