@Rollback annotation in test does not rollback anything

  | #spring#unittests

Description: Test with @Rollback annotation creates some records, but this records stay in DB after the test method’s exit.

Solution: Mark the test with @Transactional annotation to rollback the test as complete transaction

About Vladislav Bochenin

Photo of Vladislav Bochenin

Writing code more than 18 years and raising a son last 9 years.
So I more experienced in coding than raising.