org.xwiki.cache.tests
Class AbstractTestCache
java.lang.Object
org.xwiki.test.jmock.AbstractMockingTestCase
org.xwiki.test.jmock.AbstractComponentTestCase
org.xwiki.cache.tests.AbstractTestCache
- Direct Known Subclasses:
- AbstractGenericTestCache
public abstract class AbstractTestCache
- extends org.xwiki.test.jmock.AbstractComponentTestCase
Base class for testing cache component implementation.
- Version:
- $Id: badf568dc1d94320affa1bd5087000790600db66 $
|
Field Summary |
protected static String |
KEY
The first key. |
protected static String |
KEY2
The second key. |
protected String |
roleHint
The role hint of the cache component implementation to test. |
protected static String |
VALUE
The value of the first key. |
protected static int |
VALUE2
The value of the second key. |
| Fields inherited from class org.xwiki.test.jmock.AbstractMockingTestCase |
mockery |
| Methods inherited from class org.xwiki.test.jmock.AbstractComponentTestCase |
getComponentManager, getConfigurationSource, registerComponent, setUp, tearDown |
| Methods inherited from class org.xwiki.test.jmock.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 |
KEY
protected static final String KEY
- The first key.
- See Also:
- Constant Field Values
KEY2
protected static final String KEY2
- The second key.
- See Also:
- Constant Field Values
VALUE
protected static final String VALUE
- The value of the first key.
- See Also:
- Constant Field Values
VALUE2
protected static final int VALUE2
- The value of the second key.
- See Also:
- Constant Field Values
roleHint
protected String roleHint
- The role hint of the cache component implementation to test.
AbstractTestCache
protected AbstractTestCache(String roleHint)
- Parameters:
roleHint - the role hint of the cache component implementation to test.
registerComponents
protected void registerComponents()
throws Exception
- Overrides:
registerComponents in class org.xwiki.test.jmock.AbstractComponentTestCase
- Throws:
Exception
getCacheFactory
public CacheFactory getCacheFactory()
throws Exception
- Returns:
- a instance of the cache factory.
- Throws:
Exception - error when searching for cache factory component.
Copyright © 2004-2013 XWiki. All Rights Reserved.