my problem is that when I run tests individually the test work properly but when I run all the tests several tests start to fail.
It looks to be a problem of the applicationContext I have 3 applicationContext but the applicationContext-test import the 2 before.
Some times I do @applicationContext(applicatonContext1.xml)
and other times @applicationContext(applicationContext-test.xml)
I get different exceptions for different tests:
- SQLGrammarException: could not execute query.
- Detached entity exceptions
- ConstraintViolation exception.
Some tests work properly and some no, but I don't know why. Thanks