Search in sources :

Example 1 with ClientRegionShortcut

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());
}
Also used : ClientRegionShortcut(org.apache.geode.cache.client.ClientRegionShortcut) ClientCacheCreation(org.apache.geode.internal.cache.xmlcache.ClientCacheCreation) GemFireCacheImpl(org.apache.geode.internal.cache.GemFireCacheImpl) Test(org.junit.Test)

Aggregations

ClientRegionShortcut (org.apache.geode.cache.client.ClientRegionShortcut)1 GemFireCacheImpl (org.apache.geode.internal.cache.GemFireCacheImpl)1 ClientCacheCreation (org.apache.geode.internal.cache.xmlcache.ClientCacheCreation)1 Test (org.junit.Test)1