How to Clean Your Database in Between JUnit 5 Tests with Spring Boot

Posted on Aug 3, 2021 in
Reading time: 1 minute

Intro

In this tutorial, I’ll demo how to clean up your database between JUnit tests. As usual, I’ll be using Spring Boot and Kotlin and make use of JUnit 5 to register a custom extension. This extension will directly access the underlying data source (a Postgres database) to execute native queries

🍿 Watch on YouTube or get the code from GitHub

The Dead Letter Queue

Love what you're seeing? By subscribing to my newsletter, not only will you be the first to know about fresh tutorials and videos, but you'll also unlock:

Subscribe now and become a part of our growing tech tribe!