Open
Description
Caleb Cushing opened SPR-14034 and commented
I'd like to be able to register a bean as @Scope("test")
(or @TestScope
), so that after an integration test is executed this bean is cleaned up. I don't want to use @DirtiesContext
because this is the only bean I want to throw away.
For the actual use case I've built a sort of "Login Manager" for selenium that knows which user is currently logged in and which roles have test users created for them. This can't be shared between tests because we only allow a single session for a user.
I looked to see if this exists in the reference documentation and couldn't find anything.
Related Issues
- Publish TestStarted and TestCompleted events in the TestContext framework [SPR-8710] #13352 Publish TestStarted and TestCompleted events in the TestContext framework
- Publish test execution events to the test ApplicationContext [SPR-13916] #18490 Publish TestExecutionListener events to the ApplicationContext under test
No further details from SPR-14034