コード例 #1
0
 /** teardown */
 @Override
 @After
 public void tearDown() throws Exception {
   try {
     if (cache != null) {
       cache.removeAll();
       cache = null;
     }
     if (manager != null) {
       manager.shutdown();
       manager = null;
     }
   } catch (OutOfMemoryError e) {
     // OutOfMemoryError Happens at different places on Apache LRU for some reason
     LOG.info(e.getMessage());
   } catch (Throwable t) {
     // OutOfMemoryError Happens at different places on Apache LRU for some reason
     LOG.info(t.getMessage());
   }
 }