use of org.springframework.boot.actuate.cache.CacheStatisticsProvider in project spring-boot by spring-projects.
the class CacheStatisticsAutoConfigurationTests method basicEhCacheCacheStatistics.
@Test
public void basicEhCacheCacheStatistics() {
load(EhCacheConfig.class);
CacheStatisticsProvider provider = this.context.getBean("ehCacheCacheStatisticsProvider", CacheStatisticsProvider.class);
doTestCoreStatistics(provider, true);
}
use of org.springframework.boot.actuate.cache.CacheStatisticsProvider in project spring-boot by spring-projects.
the class CacheStatisticsAutoConfigurationTests method noOpCacheStatistics.
@Test
public void noOpCacheStatistics() {
load(NoOpCacheConfig.class);
CacheStatisticsProvider provider = this.context.getBean("noOpCacheStatisticsProvider", CacheStatisticsProvider.class);
Cache books = getCache("books");
CacheStatistics cacheStatistics = provider.getCacheStatistics(this.cacheManager, books);
assertCoreStatistics(cacheStatistics, null, null, null);
getOrCreate(books, "a", "b", "b", "a", "a");
CacheStatistics updatedCacheStatistics = provider.getCacheStatistics(this.cacheManager, books);
assertCoreStatistics(updatedCacheStatistics, null, null, null);
}
use of org.springframework.boot.actuate.cache.CacheStatisticsProvider in project spring-boot by spring-projects.
the class CacheStatisticsAutoConfigurationTests method basicJCacheCacheStatistics.
@Test
public void basicJCacheCacheStatistics() {
load(JCacheCacheConfig.class);
CacheStatisticsProvider provider = this.context.getBean("jCacheCacheStatisticsProvider", CacheStatisticsProvider.class);
doTestCoreStatistics(provider, false);
}
use of org.springframework.boot.actuate.cache.CacheStatisticsProvider in project spring-boot by spring-projects.
the class CacheStatisticsAutoConfigurationTests method basicInfinispanCacheStatistics.
@Test
public void basicInfinispanCacheStatistics() {
load(InfinispanConfig.class);
CacheStatisticsProvider provider = this.context.getBean("infinispanCacheStatisticsProvider", CacheStatisticsProvider.class);
doTestCoreStatistics(provider, true);
}
use of org.springframework.boot.actuate.cache.CacheStatisticsProvider in project spring-boot by spring-projects.
the class CacheStatisticsAutoConfigurationTests method basicHazelcastCacheStatistics.
@Test
public void basicHazelcastCacheStatistics() {
load(HazelcastConfig.class);
CacheStatisticsProvider provider = this.context.getBean("hazelcastCacheStatisticsProvider", CacheStatisticsProvider.class);
doTestCoreStatistics(provider, true);
}
Aggregations