Advanced Testing Patterns

by | Sep 8, 2021 | Voxxed Days Romania 2021

Tom Cools is a developer without borders, both geographically and technically. Active as a consultant with a focus on Java technologies. Next to that, he is a trainer and mentor who loves to share not only knowledge but also passion for our craft. He does this through mentorships (codingcoach.io), guiding students at his alma mater or just helping strangers on Twitter and StackOverflow. Currently active as a Software Consultant @ Info Support (Belgium).

Unit Tests by themselves give no guarantee that your system will work in a production environment. That’s where your code will have to work together with other resources like databases and APIs. Unfortunately, those are the kind of dependencies we try to avoid in tests by using mocking-frameworks. Risky business, because this means we’ll only know if the application really works when you push it to production.

In this session we’ll look at some strategies you can use to test your application without mocking your dependencies away. You’ll discover how tools like Liquibase, TestContainers, WireMock and Spring Cloud Contract can immensely improve your tests so you can deploy your application to production AND sleep at night.