Exemplo n.º 1
0
 @Before
 public void setUp() throws Exception {
   LOGGER.info("Testing : {}", name.getMethodName());
   cacheService = getCacheService();
   cacheService.clearAll();
   cacheService.start();
 }
Exemplo n.º 2
0
 @Test
 public void testClearAllCache() throws CacheException {
   cacheService.store(TEST1, "test1", "test1");
   assertTrue("cache was not empty", cacheService.getCacheSize(TEST1) > 0);
   cacheService.clearAll();
   assertTrue("cache was not cleared", cacheService.getCacheSize(TEST1) == 0);
 }