use of org.infinispan.globalstate.impl.CacheState in project infinispan by infinispan.
the class CacheResourceV2Test method assertPersistence.
private void assertPersistence(String name, boolean persisted) {
EmbeddedCacheManager cm = cacheManagers.iterator().next();
Cache<ScopedState, CacheState> configCache = cm.getCache(CONFIG_STATE_CACHE_NAME);
assertEquals(persisted, configCache.entrySet().stream().anyMatch(e -> e.getKey().getName().equals(name) && !e.getValue().getFlags().contains(VOLATILE)));
}
Aggregations