接口的使用
org.springframework.test.context.BootstrapContext
使用BootstrapContext的程序包 程序包 说明 org.springframework.test.context This package contains the Spring TestContext Framework which provides annotation-driven unit and integration testing support that is agnostic of the actual testing framework in use.org.springframework.test.context.support Support classes for the Spring TestContext Framework.org.springframework.test.context中BootstrapContext的使用
返回BootstrapContext的org.springframework.test.context中的方法 修饰符和类型 方法 说明 BootstrapContext
TestContextBootstrapper. getBootstrapContext()
Get theBootstrapContext
associated with this bootstrapper.参数类型为BootstrapContext的org.springframework.test.context中的方法 修饰符和类型 方法 说明 void
TestContextBootstrapper. setBootstrapContext(BootstrapContext bootstrapContext)
Set theBootstrapContext
to be used by this bootstrapper.org.springframework.test.context.support中BootstrapContext的使用
实现BootstrapContext的org.springframework.test.context.support中的类 修饰符和类型 类 说明 class
DefaultBootstrapContext
Default implementation of theBootstrapContext
interface.返回BootstrapContext的org.springframework.test.context.support中的方法 修饰符和类型 方法 说明 BootstrapContext
AbstractTestContextBootstrapper. getBootstrapContext()
参数类型为BootstrapContext的org.springframework.test.context.support中的方法 修饰符和类型 方法 说明 void
AbstractTestContextBootstrapper. setBootstrapContext(BootstrapContext bootstrapContext)