Open prismec opened 8 years ago
What would be the usecase for this?
The usecase is that the component under test should be shutdown during cleanup but a component that is referenced by the component under test is stubbed and used during shutdown.
I would wish that stubbed methods work in cleanup too.
My usecase is, that in cleanup of all my test extending my AbstractMockMvcControllerTest, I render HTML output of the tested controller (which helps me to visually check if view was rendered ok during development). Controller is tested using MockMvc Spring class.
Issue description
I'm trying to use a stubbed method in a cleanup method. This works if an assertion failed in the test, but not if the test succeeds.
How to reproduce
Java/JDK
1.8
Groovy version
2.3.10:indy
Operating System
Mac
IDE