What I don’t know is what the lifetime of the Test...
# minutest
d
What I don’t know is what the lifetime of the TestContextManager should be. This works though.
r
@DirtiesContext(classMode = ClassMode.AFTER_EACH_TEST_METHOD)
Not sure that’s directly relevant to what you’re asking but it seems to be
That annotation can apply to individual tests as well. I’ve never used it that way, and honestly, having to use it at all IMO indicates things are kind of a mess
d
Thanks @robfletcher - I’ll look at how many application contexts are created. It currently only starts the servlet container once, but I don’t know if that means the same thing.
r
It should do, and that’s typically the desired behavior