org.xwiki.cache.tests
Class AbstractEvictionGenericTestCache
java.lang.Object
org.xwiki.test.AbstractMockingTestCase
org.xwiki.test.AbstractComponentTestCase
org.xwiki.cache.tests.AbstractTestCache
org.xwiki.cache.tests.AbstractGenericTestCache
org.xwiki.cache.tests.AbstractEvictionGenericTestCache
public abstract class AbstractEvictionGenericTestCache
- extends AbstractGenericTestCache
Base class for testing cache component implementation. Also test eviction.
Implementations with asynch eviction system should write there own tests.
- Version:
- $Id$
| Methods inherited from class org.xwiki.test.AbstractComponentTestCase |
getComponentManager, getConfigurationSource, registerComponent, setUp, tearDown |
| Methods inherited from class org.xwiki.test.AbstractMockingTestCase |
getMockery, registerMockComponent, registerMockComponent, registerMockComponent, registerMockComponent, registerMockComponent, registerMockComponent |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractEvictionGenericTestCache
protected AbstractEvictionGenericTestCache(String roleHint,
boolean supportEvictionEvent)
- Parameters:
roleHint - the role hint of the cache component implementation to test.supportEvictionEvent - indicate of the cache implementation send eviction related events
testCreateAndDestroyCacheLRUMaxEntries
public void testCreateAndDestroyCacheLRUMaxEntries()
throws Exception
- Validate the maximum cache entries constraint.
- Throws:
Exception - error
testCreateAndDestroyCacheLRUTimeToLive
public void testCreateAndDestroyCacheLRUTimeToLive()
throws Exception
- Validate the maximum time to live constraint.
- Throws:
Exception - error
testCreateAndDestroyCacheLRUAll
public void testCreateAndDestroyCacheLRUAll()
throws Exception
- Validate the combination of maximum time to live and maximum cache entries constraints.
- Throws:
Exception - error
Copyright © 2004-2012 XWiki. All Rights Reserved.