Introduction to Mocking

Sep 30, 2021 · Bucharest, Romania

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

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

If you want to challenge yourself before the event, try to unit test the from this project:

About the speaker
Victor is a Java Champion and an Independent Trainer delivering webinars for companies around the world since 2014. His passion is Simple Design, Refactoring, and Unit Testing, about which he regularly talks at top conferences, but also to the Bucharest Software Craftsmanship Community that he founded. On you can find his blog, best talks, training curriculum, live masterclasses, and social channels.

Event organizers
  • Bucharest Software Craftsmanship Community

    This is a community for those who care and are proud of what they do. For those developers, regardless how experienced they are, who want to improve and master their craft. This is a community for those who believe that being average is just not good enough. (Please find down bellow our mission, in Romanian) The Manifesto for Software Craftsmanship As aspiring Software Craftsmen we are raising the bar of professional software development by practicing it and helping others learn the craft. Through this wor

    Recent Events

Are you organizing Introduction to Mocking?

Claim the event and start manage its content.

I am the organizer

based on 0 reviews

Featured Events