Enum Class的使用
cn.taketoday.test.annotation.DirtiesContext.HierarchyMode
程序包
说明
Support classes for annotation-driven tests.
This package contains the TestContext Framework which
provides annotation-driven unit and integration testing support that is
agnostic of the actual testing framework in use.
Support for context caching within the TestContext Framework.
Support classes for the TestContext Framework.
-
cn.taketoday.test.annotation中DirtiesContext.HierarchyMode的使用
修饰符和类型方法说明static DirtiesContext.HierarchyModeReturns the enum constant of this class with the specified name.static DirtiesContext.HierarchyMode[]DirtiesContext.HierarchyMode.values()Returns an array containing the constants of this enum class, in the order they are declared. -
cn.taketoday.test.context中DirtiesContext.HierarchyMode的使用
修饰符和类型方法说明voidCacheAwareContextLoaderDelegate.closeContext(MergedContextConfiguration mergedContextConfiguration, DirtiesContext.HierarchyMode hierarchyMode) Remove the application context for the suppliedMergedContextConfigurationfrom theContextCacheand close it if it is an instance ofConfigurableApplicationContext.voidTestContext.markApplicationContextDirty(DirtiesContext.HierarchyMode hierarchyMode) Call this method to signal that the application context associated with this test context is dirty and should be removed from the context cache. -
cn.taketoday.test.context.cache中DirtiesContext.HierarchyMode的使用
修饰符和类型方法说明voidDefaultCacheAwareContextLoaderDelegate.closeContext(MergedContextConfiguration mergedConfig, DirtiesContext.HierarchyMode hierarchyMode) voidContextCache.remove(MergedContextConfiguration key, DirtiesContext.HierarchyMode hierarchyMode) Remove the context with the given key from the cache and explicitly close it if it is an instance ofConfigurableApplicationContext.voidDefaultContextCache.remove(MergedContextConfiguration key, DirtiesContext.HierarchyMode hierarchyMode) Remove the context with the given key from the cache and explicitly close it if it is an instance ofConfigurableApplicationContext. -
cn.taketoday.test.context.support中DirtiesContext.HierarchyMode的使用
修饰符和类型方法说明protected voidAbstractDirtiesContextTestExecutionListener.dirtyContext(TestContext testContext, DirtiesContext.HierarchyMode hierarchyMode) Mark the application context of the supplied test context as dirty and setREINJECT_DEPENDENCIES_ATTRIBUTEin the test context totrue.voidDefaultTestContext.markApplicationContextDirty(DirtiesContext.HierarchyMode hierarchyMode) Mark the application context associated with this test context as dirty (i.e., by removing it from the context cache and closing it).