org.xwiki.cache.tests
Class AbstractTestCache

java.lang.Object
  extended by org.xwiki.test.AbstractMockingTestCase
      extended by org.xwiki.test.AbstractComponentTestCase
          extended by org.xwiki.cache.tests.AbstractTestCache
Direct Known Subclasses:
AbstractGenericTestCache

public abstract class AbstractTestCache
extends org.xwiki.test.AbstractComponentTestCase

Base class for testing cache component implementation.

Version:
$Id$

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.
 
Constructor Summary
protected AbstractTestCache(String roleHint)
           
 
Method Summary
 CacheFactory getCacheFactory()
           
protected  void registerComponents()
           
 
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
 

Field Detail

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.

Constructor Detail

AbstractTestCache

protected AbstractTestCache(String roleHint)
Parameters:
roleHint - the role hint of the cache component implementation to test.
Method Detail

registerComponents

protected void registerComponents()
                           throws Exception
Overrides:
registerComponents in class org.xwiki.test.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-2011 XWiki. All Rights Reserved.