use of org.apache.geode.cache.client.ClientRegionShortcut in project geode by apache.
the class CacheXml66DUnitTest method testClientCache.
@Test
public void testClientCache() throws Exception {
ClientCacheCreation cache = new ClientCacheCreation();
cache.setCopyOnRead(true);
testXml(cache);
GemFireCacheImpl c = (GemFireCacheImpl) getCache();
assertEquals(true, c.getCopyOnRead());
assertEquals(true, c.isClient());
for (ClientRegionShortcut pra : ClientRegionShortcut.values()) {
assertNotNull(c.getRegionAttributes(pra.name()));
}
assertEquals(ClientRegionShortcut.values().length, c.listRegionAttributes().size());
}
Aggregations