-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Closed
Labels
in: testIssues in the test moduleIssues in the test moduletype: enhancementA general enhancementA general enhancement
Milestone
Description
Torsten Krah opened SPR-12429 and commented
Status Quo
@DirtiesContext currently only supports closing a test ApplicationContext after an entire test class or after a test method.
Proposal
It would be useful to have before class and before method modes, too.
Currently this is achievable with a custom TestExecutionListener which marks the context as dirty at the requested phase (before class or before method), but this could be easily achieved via new modes within the @DirtiesContext annotation.
Affects: 3.0 GA
Reference URL: http://stackoverflow.com/questions/26931236/is-it-possble-to-reset-spring-tests-context-cache-before-a-test-suite-runs-not
Issue Links:
- BEFORE_* modes in @DirtiesContext cause context to be closed before test [SPR-13180] #17772 BEFORE_* modes in
@DirtiesContextcause context to be closed before test
Metadata
Metadata
Assignees
Labels
in: testIssues in the test moduleIssues in the test moduletype: enhancementA general enhancementA general enhancement