commit
feee401f87
|
|
@ -3788,7 +3788,7 @@ providers (in this order):
|
||||||
|
|
||||||
* <<boot-features-caching-provider-generic,Generic>>
|
* <<boot-features-caching-provider-generic,Generic>>
|
||||||
* <<boot-features-caching-provider-jcache,JCache (JSR-107)>> (EhCache 3, Hazelcast,
|
* <<boot-features-caching-provider-jcache,JCache (JSR-107)>> (EhCache 3, Hazelcast,
|
||||||
Infinspan, etc)
|
Infinispan, etc)
|
||||||
* <<boot-features-caching-provider-ehcache2,EhCache 2.x>>
|
* <<boot-features-caching-provider-ehcache2,EhCache 2.x>>
|
||||||
* <<boot-features-caching-provider-hazelcast,Hazelcast>>
|
* <<boot-features-caching-provider-hazelcast,Hazelcast>>
|
||||||
* <<boot-features-caching-provider-infinispan,Infinispan>>
|
* <<boot-features-caching-provider-infinispan,Infinispan>>
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@ public class AutoConfigureTestDatabaseWithNoDatabaseIntegrationTests {
|
||||||
private ApplicationContext context;
|
private ApplicationContext context;
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testContextLoades() throws Exception {
|
public void testContextLoads() throws Exception {
|
||||||
// gh-6897
|
// gh-6897
|
||||||
assertThat(this.context).isNotNull();
|
assertThat(this.context).isNotNull();
|
||||||
assertThat(this.context.getBeanNamesForType(DataSource.class)).isNotEmpty();
|
assertThat(this.context.getBeanNamesForType(DataSource.class)).isNotEmpty();
|
||||||
|
|
|
||||||
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue