Hi, I'm doing an integration test in the spring and I have a problem where during the addition test in the service, rollback not working, but always add an item to the base.
I have annotation @ Transactional and @ TestPropertySource on test class,
I have application-test.properties and the test is successful but the rollback is not executed and a new item is always added to the test database.
My test class and add test method (last one):
My application-test.properties :
And when execute add address test, every time in my kts_test data base ( db used for testing) is added new item and not rollback.
If anyone can help I would be grateful. Thank you.