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, registerMockComponent, registerMockComponent, registerMockComponent, setUp, tearDown |
| Methods inherited from class org.xwiki.test.AbstractMockingTestCase |
getMockery |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractEvictionGenericTestCache
protected AbstractEvictionGenericTestCache(String roleHint)
- Parameters:
roleHint - the role hint of the cache component implementation to test.
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-2011 XWiki. All Rights Reserved.