Closed
Description
Saurabh Chandra opened SPR-8857 and commented
Data from one test having data-source as H2 (in-memory database) seems to live on for the next test class. This persists even after using @DirtiesContext
at class or method level.
Currently we have to clear any data from H2 before every a test.
@DirtiesContext
should clear all that is bound to the context (including data-source).
If it might help we are using JUnit 4.8.1.
Issue Links:
- Allow for concurrent test execution in the TestContext framework [SPR-5863] #10532 Allow for concurrent test execution in the TestContext framework
5 votes, 9 watchers