Code example for CachingConfigurerSupport

Methods: mock

0
	static class Config extends CachingConfigurerSupport {
 
		@Bean 
		@Override 
		public CacheErrorHandler errorHandler() {
			return mock(CacheErrorHandler.class);
		} 
 
		@Bean 
		public SimpleService simpleService() { 
			return new SimpleService(); 
		} 
 
		@Bean 
		public CacheManager cacheManager() {
			SimpleCacheManager cacheManager = new SimpleCacheManager();
			cacheManager.setCaches(Arrays.asList(mockCache()));
			return cacheManager;
		} 
 
Experience pair programming with AI  Get Codota for Java