spring-framework / org.springframework.test.context.support / DefaultTestContext / markApplicationContextDirty

markApplicationContextDirty

open fun markApplicationContextDirty(@Nullable hierarchyMode: HierarchyMode): Unit

Mark the ApplicationContext associated with this test context as dirty (i.e., by removing it from the context cache and closing it).

The default implementation delegates to the CacheAwareContextLoaderDelegate that was supplied when this TestContext was constructed.

See Also
CacheAwareContextLoaderDelegate#closeContext