|
|
@ -283,9 +283,9 @@ public class CacheAutoConfigurationTests {
|
|
|
|
RedisCacheManager cacheManager = validateCacheManager(context,
|
|
|
|
RedisCacheManager cacheManager = validateCacheManager(context,
|
|
|
|
RedisCacheManager.class);
|
|
|
|
RedisCacheManager.class);
|
|
|
|
assertThat(cacheManager.getCacheNames()).isEmpty();
|
|
|
|
assertThat(cacheManager.getCacheNames()).isEmpty();
|
|
|
|
org.springframework.data.redis.cache.RedisCacheConfiguration configuration = (org.springframework.data.redis.cache.RedisCacheConfiguration) new DirectFieldAccessor(
|
|
|
|
assertThat(((org.springframework.data.redis.cache.RedisCacheConfiguration)
|
|
|
|
cacheManager).getPropertyValue("defaultCacheConfig");
|
|
|
|
new DirectFieldAccessor(cacheManager).getPropertyValue(
|
|
|
|
assertThat(configuration.usePrefix()).isTrue();
|
|
|
|
"defaultCacheConfig")).usePrefix()).isTrue();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|