Hi,
I am using testNG, Spring JPA Data Repository and Derby for my integration tests. I need to close and re-open the application context for each test class. So I have used @DirtiesContext on each of my test classes. After making this change my tests are it is working fine in STS. But when I do maven install this is not working fine, debug is saying that the application context is getting closed and re-oped but the tests are failing because the application context chache is not getting cleared and no new application context is getting created.
Thanks in advance.
Regards,
Amit Solankurkar


Reply With Quote
