类的使用
org.springframework.test.context.TestContextManager
使用TestContextManager的程序包 程序包 说明 org.springframework.test.context.junit4 Support classes for integrating the Spring TestContext Framework with JUnit 4.12 or higher.org.springframework.test.context.junit4.statements Custom JUnit 4Statementsused in the Spring TestContext Framework.org.springframework.test.context.junit4中TestContextManager的使用
返回TestContextManager的org.springframework.test.context.junit4中的方法 修饰符和类型 方法 说明 protected TestContextManagerSpringJUnit4ClassRunner. createTestContextManager(Class<?> clazz)Create a newTestContextManagerfor the supplied test class.protected TestContextManagerSpringJUnit4ClassRunner. getTestContextManager()Get theTestContextManagerassociated with this runner.org.springframework.test.context.junit4.statements中TestContextManager的使用
参数类型为TestContextManager的org.springframework.test.context.junit4.statements中的构造器 构造器 说明 RunAfterTestClassCallbacks(Statement next, TestContextManager testContextManager)Construct a newRunAfterTestClassCallbacksstatement.RunAfterTestExecutionCallbacks(Statement next, Object testInstance, Method testMethod, TestContextManager testContextManager)Construct a newRunAfterTestExecutionCallbacksstatement.RunAfterTestMethodCallbacks(Statement next, Object testInstance, Method testMethod, TestContextManager testContextManager)Construct a newRunAfterTestMethodCallbacksstatement.RunBeforeTestClassCallbacks(Statement next, TestContextManager testContextManager)Construct a newRunBeforeTestClassCallbacksstatement.RunBeforeTestExecutionCallbacks(Statement next, Object testInstance, Method testMethod, TestContextManager testContextManager)Construct a newRunBeforeTestExecutionCallbacksstatement.RunBeforeTestMethodCallbacks(Statement next, Object testInstance, Method testMethod, TestContextManager testContextManager)Construct a newRunBeforeTestMethodCallbacksstatement.RunPrepareTestInstanceCallbacks(Statement next, Object testInstance, TestContextManager testContextManager)Construct a newRunPrepareTestInstanceCallbacksstatement.