コード例 #1
0
 /** Load up the test cache */
 protected void setUp() throws Exception {
   super.setUp();
   manager = new CacheManager();
   cache = manager.getCache("sampleIdlingExpiringCache");
   selfPopulatingCache = new SelfPopulatingCache(cache, new CountingCacheEntryFactory("value"));
   cacheEntryFactoryRequests = 0;
 }
コード例 #2
0
 /** Load up the test cache */
 @Override
 @Before
 public void setUp() throws Exception {
   // Skip update checks. Causing an OutOfMemoryError
   System.setProperty("net.sf.ehcache.skipUpdateCheck", "true");
   super.setUp();
   manager = new CacheManager();
   cache = manager.getCache("sampleIdlingExpiringCache");
   selfPopulatingCache = new SelfPopulatingCache(cache, new CountingCacheEntryFactory("value"));
   cacheEntryFactoryRequests = 0;
 }