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);
}
Aggregations