Don’t be mocked by your Mocks: Listening to your Tests

14 Jan

5:00 pm LONDON, london , london, London



This is a virtual Meetup occurring at 5PM UK time (GMT). Join the live broadcast on

View the event in your timezone:

Take part in the live session discussion on our #live-session slack channel:

The recording will be available immediately afterward.

Do you ❤️ Mocks? When you write your first unit tests, especially on older codebases, mocking foreign code is key to survival. But as you grow older in the craft, you start piling up hours and days wasted to refactor fragile tests or to fix bugs that those heavy mock-based tests didn’t catch. And so you start looking at Mocks differently.
Let’s go through the key factors to consider to strike the optimal balance between what needs to be mocked away and what code should be tested in integration. There’s sometimes a fine line there, often interwoven with strong emotions:

“Why am I testing this?”
“Argh… these tests take too long”
“Can this ever really break?”

Among the points that we’ll touch on:
– Mocks vs Refactoring
– Mocks vs Reliability
– Fine vs Coarse Mocks
– Reproducibility
– Partial Mocks
– Mocking Statics
– Alternatives to Mocks

Speakers: Victor Rentea

Victor is a Java Champion and Independent Trainer with an impressive experience: thousands of developers in dozens of companies trained in dedicated company sessions. He is the founder of one of the largest developer communities in Romania, Bucharest Software Craftsmanship Community and a top international conference speaker.

To find more about him:

Leave a comment

You should login with GitHub to comment

Be updated, subscribe to our signals

Inviting for a beer
See you there!

Thank you for RSVPing. Please, keep culture high and remove RSVP once you now you can not make it.

Well done!

Your commit was pushed to GitOrbit, let`s see what other guys think about it.


Something wrong...

You already like this article!

Please authorize!

sign in