类的使用
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 4Statements
used in the Spring TestContext Framework.org.springframework.test.context.junit4中TestContextManager的使用
返回TestContextManager的org.springframework.test.context.junit4中的方法 修饰符和类型 方法 说明 protected TestContextManager
SpringJUnit4ClassRunner. createTestContextManager(Class<?> clazz)
Create a newTestContextManager
for the supplied test class.protected TestContextManager
SpringJUnit4ClassRunner. getTestContextManager()
Get theTestContextManager
associated with this runner.org.springframework.test.context.junit4.statements中TestContextManager的使用
参数类型为TestContextManager的org.springframework.test.context.junit4.statements中的构造器 构造器 说明 RunAfterTestClassCallbacks(Statement next, TestContextManager testContextManager)
Construct a newRunAfterTestClassCallbacks
statement.RunAfterTestExecutionCallbacks(Statement next, Object testInstance, Method testMethod, TestContextManager testContextManager)
Construct a newRunAfterTestExecutionCallbacks
statement.RunAfterTestMethodCallbacks(Statement next, Object testInstance, Method testMethod, TestContextManager testContextManager)
Construct a newRunAfterTestMethodCallbacks
statement.RunBeforeTestClassCallbacks(Statement next, TestContextManager testContextManager)
Construct a newRunBeforeTestClassCallbacks
statement.RunBeforeTestExecutionCallbacks(Statement next, Object testInstance, Method testMethod, TestContextManager testContextManager)
Construct a newRunBeforeTestExecutionCallbacks
statement.RunBeforeTestMethodCallbacks(Statement next, Object testInstance, Method testMethod, TestContextManager testContextManager)
Construct a newRunBeforeTestMethodCallbacks
statement.RunPrepareTestInstanceCallbacks(Statement next, Object testInstance, TestContextManager testContextManager)
Construct a newRunPrepareTestInstanceCallbacks
statement.