Polish "Align with breaking API changes in RedisCacheManager"
Closes gh-9734
This commit is contained in:
@@ -57,7 +57,6 @@ class RedisCacheConfiguration {
|
||||
|
||||
@Bean
|
||||
public RedisCacheManager cacheManager(RedisConnectionFactory redisConnectionFactory) {
|
||||
|
||||
RedisCacheManagerBuilder builder = RedisCacheManager.builder(redisConnectionFactory);
|
||||
List<String> cacheNames = this.cacheProperties.getCacheNames();
|
||||
if (!cacheNames.isEmpty()) {
|
||||
|
||||
@@ -283,9 +283,9 @@ public class CacheAutoConfigurationTests {
|
||||
RedisCacheManager cacheManager = validateCacheManager(context,
|
||||
RedisCacheManager.class);
|
||||
assertThat(cacheManager.getCacheNames()).isEmpty();
|
||||
org.springframework.data.redis.cache.RedisCacheConfiguration configuration = (org.springframework.data.redis.cache.RedisCacheConfiguration) new DirectFieldAccessor(
|
||||
cacheManager).getPropertyValue("defaultCacheConfig");
|
||||
assertThat(configuration.usePrefix()).isTrue();
|
||||
assertThat(((org.springframework.data.redis.cache.RedisCacheConfiguration)
|
||||
new DirectFieldAccessor(cacheManager).getPropertyValue(
|
||||
"defaultCacheConfig")).usePrefix()).isTrue();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user