public abstract class AbstractEvictionGenericTestCache extends AbstractGenericTestCache
Implementations with asynch eviction system should write there own tests.
componentManager, KEY, KEY2, roleHint, VALUE, VALUE2
Modifier | Constructor and Description |
---|---|
protected |
AbstractEvictionGenericTestCache(String roleHint,
boolean supportEvictionEvent) |
Modifier and Type | Method and Description |
---|---|
void |
createAndDestroyCacheLRUAll()
Validate the combination of maximum time to live and maximum cache entries constraints.
|
void |
createAndDestroyCacheLRULifespan()
Validate the maximum time to live constraint.
|
void |
createAndDestroyCacheLRUMaxEntries()
Validate the maximum cache entries constraint.
|
void |
createAndDestroyCacheLRUMAxIdle()
Validate the maximum time to live constraint.
|
protected void |
customizeEviction(EntryEvictionConfiguration eviction) |
createAndDestroyCacheSimple, events, getFactory, recreateCache, remove, removeAll, severalCaches
before, getCacheFactory
protected AbstractEvictionGenericTestCache(String roleHint, boolean supportEvictionEvent)
roleHint
- the role hint of the cache component implementation to test.supportEvictionEvent
- indicate of the cache implementation send eviction related eventsprotected void customizeEviction(EntryEvictionConfiguration eviction)
public void createAndDestroyCacheLRUMaxEntries() throws Exception
Exception
- errorpublic void createAndDestroyCacheLRUMAxIdle() throws Exception
Exception
- errorpublic void createAndDestroyCacheLRULifespan() throws Exception
Exception
- errorCopyright © 2004–2019 XWiki. All rights reserved.