Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }