Closed
Description
Keith Donald opened SPR-5395 and commented
I am seeing side-effects in an integration test that initializes a Spring ApplicationContext using @ContextConfiguration
. Specifically, close() on the context does not appear to be being called, ever. I noticed this because one of my DispoableBeans is not receiving a destroy() callback and that is what is causing the side-effect [which pops up when a @test runs in another, unrelated TestCase class].
I understand a test ApplicationContext is cached between test methods, but I would still expect the context to be closed after all tests have run, before moving on to the next test class in the suite.
Affects: 3.0 M1
Issue Links:
- Support for @DirtiesContext at the test class level [SPR-4702] #9379 Support for
@DirtiesContext
at the test class level ("duplicates") - Reload the application context for each test in a class with a class level annotation [SPR-5640] #10311 Reload the application context for each test in a class with a class level annotation
- Support for @DirtiesContext at the test class level [SPR-4702] #9379 Support for
@DirtiesContext
at the test class level