|
|
@ -61,10 +61,10 @@ public class SpringBootTestContextBootstrapperTests {
|
|
|
|
BootstrapContext bootstrapContext = mock(BootstrapContext.class);
|
|
|
|
BootstrapContext bootstrapContext = mock(BootstrapContext.class);
|
|
|
|
bootstrapper.setBootstrapContext(bootstrapContext);
|
|
|
|
bootstrapper.setBootstrapContext(bootstrapContext);
|
|
|
|
given((Class) bootstrapContext.getTestClass()).willReturn(testClass);
|
|
|
|
given((Class) bootstrapContext.getTestClass()).willReturn(testClass);
|
|
|
|
CacheAwareContextLoaderDelegate contextLoaderDeleagte = mock(
|
|
|
|
CacheAwareContextLoaderDelegate contextLoaderDelegate = mock(
|
|
|
|
CacheAwareContextLoaderDelegate.class);
|
|
|
|
CacheAwareContextLoaderDelegate.class);
|
|
|
|
given(bootstrapContext.getCacheAwareContextLoaderDelegate())
|
|
|
|
given(bootstrapContext.getCacheAwareContextLoaderDelegate())
|
|
|
|
.willReturn(contextLoaderDeleagte);
|
|
|
|
.willReturn(contextLoaderDelegate);
|
|
|
|
bootstrapper.buildTestContext();
|
|
|
|
bootstrapper.buildTestContext();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|