[Solved] Spring + JUnit drop database after each test

If you want to drop the database after each test use this at the class level

[code language=”java”]
@DirtiesContext(classMode=ClassMode.AFTER_EACH_TEST_METHOD)
[/code]

Leave a Reply

Your email address will not be published. Required fields are marked *