use of org.magic.api.cache.impl.NoCache in project MtgDesktopCompanion by nicho92.
the class PicturesProviderTests method removeCache.
@Before
public void removeCache() {
MTGLogger.changeLevel(Level.ERROR);
List<MTGPicturesCache> caches = MTGControler.getInstance().getListCaches();
MTGControler.getInstance().getListCaches().removeAll(caches);
MTGPicturesCache cache = new NoCache();
cache.enable(true);
MTGControler.getInstance().getListCaches().add(cache);
}
use of org.magic.api.cache.impl.NoCache in project MtgDesktopCompanion by nicho92.
the class CacheProviderTests method test.
@Test
public void test() {
test(new NoCache());
test(new MemoryCache());
test(new FileCache());
}
Aggregations