java类org.springframework.test.context.TestContextBootstrapper的实例源码

AbstractContextConfigurationUtilsTests.java 文件源码 项目:spring4-understanding 阅读 25 收藏 0 点赞 0 评论 0
MergedContextConfiguration buildMergedContextConfiguration(Class<?> testClass) {
    CacheAwareContextLoaderDelegate cacheAwareContextLoaderDelegate = Mockito.mock(CacheAwareContextLoaderDelegate.class);
    BootstrapContext bootstrapContext = BootstrapTestUtils.buildBootstrapContext(testClass, cacheAwareContextLoaderDelegate);
    TestContextBootstrapper bootstrapper = BootstrapTestUtils.resolveTestContextBootstrapper(bootstrapContext);
    return bootstrapper.buildMergedContextConfiguration();
}


问题


面经


文章

微信
公众号

扫码关注公众号