Software Craftsmanship Zürich Meetup

Mocking Without The Hangover

Unit tests are awesome! They are small, they run fast, and they require little maintenance. Most importantly, unit tests run your code in isolation and thereby provide feedback on its design. However, what if you cannot get your code under test? Your design obviously needs improvement, but what if you cannot change that? You write an integration test, or you look into Mocking.

Mocking has a bad reputation, but it can come in handy and even save your day. In this workshop, you'll use Mockito to unit test a small Java program with mocks, stubs, and spies. You'll apply advanced mocking techniques to cope with complicated designs, and use matchers for less coupling to implementation details. You'll learn about different types of dependencies and how mocks help to run them against assertions or even with behaviour verification. In the end, we'll review common myths about mocking and discuss your new experience with a cold beer. Mock responsibly!

Your facilitator will be…

Jan Wloka is a software engineer at heart, works at a small software engineering shop called Quatico, and tries to change the world. Every day. Seriously. Find him on Twitter @crashtester.

Where do we practice?

SIX Fintech Incubator F10, Förrlibuckstrasse 10, 8005 Zürich - Around 10 minutes from Zürich HB.

Thank you SIX Fintech Incubator F10!

We would like to thank our friends from SIX Fintech Incubator F10 to provide us the space for hosting this free event.

More information here: http://www.meetup.com/Software-Craftsmanship-Zurich/events/229506601/