Adam Badura


Adam Badura is a software developer and an architect at Nokia. He has over 10 years of work experience, however, his passion for programming (with C++ mostly) is much older. Adam's interests are mostly the development of good software across all levels: from general design to technical details of specific implementation. His natural bent for formal things is complemented by the eagerness to share his own experience and learn from the experience of others.



Techniques for mocking in C++ (2017)

Proper mocking and stubbing are very useful, if not even required, to properly test software. However, many interesting cases relate to components difficult to mock – like external C-style APIs (POSIX, WinAPI or even library functions themselves) or dreaded singletons. In this presentation, I will share various techniques to deal with such cases and mock interfaces that otherwise seem difficult or even impossible to mock.