|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.alfresco.repo.cache.CacheTest
public class CacheTest
EhCacheAdapter
Constructor Summary | |
---|---|
CacheTest()
|
Method Summary | |
---|---|
static void |
main(java.lang.String[] args)
|
long |
runPerformanceTestOnCache(org.alfresco.repo.cache.SimpleCache cache,
int objectCount)
Preloads the cache, then performs a simultaneous addition of N new values and removal of the N preloaded values. |
void |
setUp()
|
void |
tearDown()
|
void |
testConcurrentAddAgainstAdd()
Add to the transaction cache Add to the backing cache Commit |
void |
testConcurrentAddAgainstAddSame()
Add to the transaction cache Add to the backing cache Commit |
void |
testConcurrentAddAgainstClear()
Add to the transaction cache Clear the backing cache Commit |
void |
testConcurrentRemoveAgainstClear()
Add to the backing cache Remove from the transactional cache Clear the backing cache Commit |
void |
testConcurrentRemoveAgainstRemove()
Add to the backing cache Remove from the transactional cache Remove from the backing cache Commit |
void |
testConcurrentRemoveAgainstUpdate_NoPreExisting()
Remove from the backing cache Remove from the transactional cache Add to the backing cache Commit |
void |
testConcurrentRemoveAgainstUpdate_PreExisting()
Add to the backing cache Remove from the transactional cache Add to the backing cache Commit |
void |
testConcurrentUpdateAgainstClear()
Add to the backing cache Update the transactional cache Clear the backing cache Commit |
void |
testConcurrentUpdateAgainstRemove()
Add to the backing cache Update the transactional cache Remove from the backing cache Commit |
void |
testConcurrentUpdateAgainstUpdate()
Add to the backing cache Update the transactional cache Update the backing cache Commit |
void |
testConcurrentUpdateAgainstUpdateNull()
Add to the backing cache Update the transactional cache Update the backing cache with a null value Commit |
void |
testConcurrentUpdateNullAgainstUpdate()
Add to the backing cache Update the transactional cache with a null value Update the backing cache Commit |
void |
testEhcacheAdaptors()
|
void |
testInitializationPerformance()
Time how long it takes to create and complete a whole lot of transactions |
void |
testMaxSizeOverrun()
Add 50K objects into the transactional cache and checks that the first object added has been discarded. |
void |
testNullValue()
Starts off with a null in the backing cache and adds a value to the transactional cache. |
void |
testObjectCache()
|
void |
testPerformance()
Tests a straight Ehcache adapter against a transactional cache both in and out of a transaction. |
void |
testRollbackCleanup()
|
void |
testSetUp()
|
void |
testTransactionalCacheNoTxn()
|
void |
testTransactionalCacheWithSingleTxn()
|
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString |
Methods inherited from class junit.framework.Assert |
---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CacheTest()
Method Detail |
---|
public void setUp() throws java.lang.Exception
setUp
in class junit.framework.TestCase
java.lang.Exception
public void tearDown()
tearDown
in class junit.framework.TestCase
public void testSetUp() throws java.lang.Exception
java.lang.Exception
public void testObjectCache() throws java.lang.Exception
java.lang.Exception
public void testEhcacheAdaptors() throws java.lang.Exception
java.lang.Exception
public void testTransactionalCacheNoTxn() throws java.lang.Exception
java.lang.Exception
public void testRollbackCleanup() throws java.lang.Exception
java.lang.Exception
public void testTransactionalCacheWithSingleTxn() throws java.lang.Throwable
java.lang.Throwable
public long runPerformanceTestOnCache(org.alfresco.repo.cache.SimpleCache cache, int objectCount)
cache
- objectCount
-
public void testPerformance() throws java.lang.Exception
java.lang.Exception
public void testInitializationPerformance() throws java.lang.Exception
java.lang.Exception
public static void main(java.lang.String[] args)
CacheTest.testPerformance()
public void testNullValue() throws java.lang.Exception
java.lang.Exception
public void testMaxSizeOverrun() throws java.lang.Exception
java.lang.Exception
public void testConcurrentAddAgainstAdd() throws java.lang.Throwable
java.lang.Throwable
public void testConcurrentAddAgainstAddSame() throws java.lang.Throwable
java.lang.Throwable
public void testConcurrentAddAgainstClear() throws java.lang.Throwable
java.lang.Throwable
public void testConcurrentUpdateAgainstUpdate() throws java.lang.Throwable
java.lang.Throwable
public void testConcurrentUpdateAgainstUpdateNull() throws java.lang.Throwable
java.lang.Throwable
public void testConcurrentUpdateNullAgainstUpdate() throws java.lang.Throwable
java.lang.Throwable
public void testConcurrentUpdateAgainstRemove() throws java.lang.Throwable
java.lang.Throwable
public void testConcurrentUpdateAgainstClear() throws java.lang.Throwable
java.lang.Throwable
public void testConcurrentRemoveAgainstUpdate_NoPreExisting() throws java.lang.Throwable
java.lang.Throwable
public void testConcurrentRemoveAgainstUpdate_PreExisting() throws java.lang.Throwable
java.lang.Throwable
public void testConcurrentRemoveAgainstRemove() throws java.lang.Throwable
java.lang.Throwable
public void testConcurrentRemoveAgainstClear() throws java.lang.Throwable
java.lang.Throwable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |