How to refresh SessionFactory or SpringContext programmatically with SpringBoot and Hibernate via API for some tests
I run a lot of black box test with cypress against my running spring Boot application.
Most of the tests don’t care about the state of the database (as black box testing might suggest). But a few tests need a clean database.