Enum Class的使用
cn.taketoday.test.annotation.DirtiesContext.ClassMode
使用DirtiesContext.ClassMode的程序包
程序包
说明
Support classes for annotation-driven tests.
Support classes for the TestContext Framework.
-
cn.taketoday.test.annotation中DirtiesContext.ClassMode的使用
修饰符和类型方法说明static DirtiesContext.ClassModeReturns the enum constant of this class with the specified name.static DirtiesContext.ClassMode[]DirtiesContext.ClassMode.values()Returns an array containing the constants of this enum class, in the order they are declared. -
cn.taketoday.test.context.support中DirtiesContext.ClassMode的使用
修饰符和类型方法说明protected voidAbstractDirtiesContextTestExecutionListener.beforeOrAfterTestClass(TestContext testContext, DirtiesContext.ClassMode requiredClassMode) Perform the actual work forAbstractTestExecutionListener.beforeTestClass(cn.taketoday.test.context.TestContext)andAbstractTestExecutionListener.afterTestClass(cn.taketoday.test.context.TestContext)by dirtying the context if appropriate (i.e., according to the required mode).protected voidAbstractDirtiesContextTestExecutionListener.beforeOrAfterTestMethod(TestContext testContext, DirtiesContext.MethodMode requiredMethodMode, DirtiesContext.ClassMode requiredClassMode) Perform the actual work forAbstractTestExecutionListener.beforeTestMethod(cn.taketoday.test.context.TestContext)andAbstractTestExecutionListener.afterTestMethod(cn.taketoday.test.context.TestContext)by dirtying the context if appropriate (i.e., according to the required modes).