I have pretty much the same problem like this user. Hibernate can\'t drop the tables of my in-memory test database after each SpringBootTest (e.g. when running mvn test). Th
You must annotate your test classes with DirtiesContext:
@DirtiesContext(methodMode = MethodMode.BEFORE_CLASS)
This will rebuild the test context and therefore also create-drop your schema.
Read more about this: https://www.baeldung.com/spring-dirtiescontext