Search in sources :

Example 1 with TestExoCache

use of org.exoplatform.services.cache.impl.infinispan.TestExoCacheCreator.TestExoCache in project kernel by exoplatform.

the class TestExoCacheFactoryImpl method testExoCacheCreator.

public void testExoCacheCreator() {
    ExoCache cache = service_.getCacheInstance("test-default-impl");
    assertTrue("expect an instance of AbstractExoCache", cache instanceof AbstractExoCache);
    AbstractExoCache aCache = (AbstractExoCache) cache;
    aCache.cache.stop();
    cache = service_.getCacheInstance("test-custom-impl-with-old-config");
    assertTrue("expect an instance of TestExoCache", cache instanceof TestExoCache);
    cache = service_.getCacheInstance("test-custom-impl-with-new-config");
    assertTrue("expect an instance of TestExoCache", cache instanceof TestExoCache);
}
Also used : TestExoCache(org.exoplatform.services.cache.impl.infinispan.TestExoCacheCreator.TestExoCache) ExoCache(org.exoplatform.services.cache.ExoCache) TestExoCache(org.exoplatform.services.cache.impl.infinispan.TestExoCacheCreator.TestExoCache)

Aggregations

ExoCache (org.exoplatform.services.cache.ExoCache)1 TestExoCache (org.exoplatform.services.cache.impl.infinispan.TestExoCacheCreator.TestExoCache)1