Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

@Transactional does not remove DB records after unit test method done #188

Open
yongqxu opened this issue Feb 6, 2020 · 0 comments
Open

Comments

@yongqxu
Copy link

yongqxu commented Feb 6, 2020

I am using SB2.1.7 with JDK11 and embedded MySQL 5.7.19, i noticed that even my test method has @transactional, I still have to explicitly remove all records before each test in @before method, otherwise tests will interfere each other. did i miss any configuration? The test method remove records after the test in H2 before.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant