|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.xwiki.test.AbstractMockingTestCase
org.xwiki.test.AbstractComponentTestCase
org.xwiki.cache.tests.AbstractTestCache
org.xwiki.cache.tests.AbstractGenericTestCache
public abstract class AbstractGenericTestCache
Base class for testing cache component implementation.
| Field Summary |
|---|
| Fields inherited from class org.xwiki.cache.tests.AbstractTestCache |
|---|
KEY, KEY2, roleHint, VALUE, VALUE2 |
| Constructor Summary | |
|---|---|
protected |
AbstractGenericTestCache(String roleHint)
|
| Method Summary | |
|---|---|
void |
testCreateAndDestroyCacheSimple()
Validate some basic cache use case without any constraints. |
void |
testEvents()
Validate event management. |
void |
testGetFactory()
Validate factory initialization. |
void |
testRecreateCache()
Validate that when recreating a cache with the same id the second instance is in a proper state. |
void |
testRemove()
Validate Cache.remove(String). |
void |
testRemoveAll()
Validate Cache.removeAll(). |
void |
testSeveralCaches()
Validate that two different caches are really different. |
| Methods inherited from class org.xwiki.cache.tests.AbstractTestCache |
|---|
getCacheFactory, registerComponents |
| 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 |
| Constructor Detail |
|---|
protected AbstractGenericTestCache(String roleHint)
roleHint - the role hint of the cache component implementation to test.| Method Detail |
|---|
public void testGetFactory()
throws Exception
Exception - error.
public void testCreateAndDestroyCacheSimple()
throws Exception
Exception - error.
public void testRemove()
throws Exception
Cache.remove(String).
Exception - error.
public void testRemoveAll()
throws Exception
Cache.removeAll().
Exception - error.
public void testEvents()
throws Exception
Exception - error.
public void testSeveralCaches()
throws Exception
Exception - error.
public void testRecreateCache()
throws Exception
Exception - error
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||