How to Clean Your Database in Between JUnit 5 Tests with Spring Boot
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