Package org.geomajas.plugin.caching.service

Examples of org.geomajas.plugin.caching.service.DummyCacheService.clear()


    Assert.assertEquals("", recorder.matches(CacheCategory.TILE, "Put item in cache"));

    // verify that data is in the cache
    DummyCacheService cache = (DummyCacheService)cacheManager.getCacheForTesting(LAYER_BEANS, CacheCategory.TILE);
    Assert.assertEquals(1, cache.size());
    cache.clear(); // remove tile from cache

    // get tile again, should put tile in cache again but use features and string from cache
    recorder.clear();
    tile = vectorLayerService.getTile(tmd);
    Assert.assertNotNull(tile);
View Full Code Here


    Assert.assertEquals("", recorder.matches(CacheCategory.TILE, "Put item in cache"));

    // verify that data is in the cache
    DummyCacheService cache = (DummyCacheService)cacheManager.getCacheForTesting(LAYER_BEANS, CacheCategory.TILE);
    Assert.assertEquals(1, cache.size());
    cache.clear(); // remove tile from cache

    cache = (DummyCacheService) cacheManager.getCacheForTesting(LAYER_BEANS, CacheCategory.FEATURE);
    Assert.assertEquals(1, cache.size());
    FeaturesCacheContainer fcc = (FeaturesCacheContainer) cache.getObject();
    List<InternalFeature> features = fcc.getFeatures();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.