Search in sources :

Example 1 with NoOpCacheManager

use of org.springframework.cache.support.NoOpCacheManager in project spring-boot by spring-projects.

the class CacheAutoConfigurationTests method noOpCacheExplicit.

@Test
public void noOpCacheExplicit() {
    load(DefaultCacheConfiguration.class, "spring.cache.type=none");
    NoOpCacheManager cacheManager = validateCacheManager(NoOpCacheManager.class);
    assertThat(cacheManager.getCacheNames()).isEmpty();
}
Also used : NoOpCacheManager(org.springframework.cache.support.NoOpCacheManager) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 NoOpCacheManager (org.springframework.cache.support.NoOpCacheManager)1