Search in sources :

Example 1 with TestContextBootstrapper

use of org.springframework.test.context.TestContextBootstrapper in project spring-framework by spring-projects.

the class AbstractContextConfigurationUtilsTests method buildMergedContextConfiguration.

MergedContextConfiguration buildMergedContextConfiguration(Class<?> testClass) {
    CacheAwareContextLoaderDelegate cacheAwareContextLoaderDelegate = Mockito.mock(CacheAwareContextLoaderDelegate.class);
    BootstrapContext bootstrapContext = BootstrapTestUtils.buildBootstrapContext(testClass, cacheAwareContextLoaderDelegate);
    TestContextBootstrapper bootstrapper = BootstrapTestUtils.resolveTestContextBootstrapper(bootstrapContext);
    return bootstrapper.buildMergedContextConfiguration();
}
Also used : CacheAwareContextLoaderDelegate(org.springframework.test.context.CacheAwareContextLoaderDelegate) BootstrapContext(org.springframework.test.context.BootstrapContext) TestContextBootstrapper(org.springframework.test.context.TestContextBootstrapper)

Aggregations

BootstrapContext (org.springframework.test.context.BootstrapContext)1 CacheAwareContextLoaderDelegate (org.springframework.test.context.CacheAwareContextLoaderDelegate)1 TestContextBootstrapper (org.springframework.test.context.TestContextBootstrapper)1