Hey folks! 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.
🍃 Grab the code
https://axgr.dev/posts/junit-clean-da...
🙌 Get in Touch
Join my newsletter and say hi at https://axgr.dev/newsletter/?utm_camp...
🍿 Subscribe if you want to see more Spring Boot + Kotlin tutorials!