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:
5 votes, 9 watchers
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
@DirtiesContextat class or method level.Currently we have to clear any data from H2 before every a test.
@DirtiesContextshould clear all that is bound to the context (including data-source).If it might help we are using JUnit 4.8.1.
Issue Links:
5 votes, 9 watchers