@Before public void setUp() throws Exception { LOGGER.info("Testing : {}", name.getMethodName()); cacheService = getCacheService(); cacheService.clearAll(); cacheService.start(); }
@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); }