I'm developing a test for an application with many models some of them with relationships. Every time I try to run the test, it says "Failed to load ApplicationContext" error.
I have a method that clean all the tables before the test
SomethingRepository.deleteAll();
When I delete the tables manually on the DB, the test runs without problems. How can I configure or solve this problem?