|
Expresso 5-5-0 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
com.jcorporate.expresso.services.test.ExpressoTestCase
com.jcorporate.expresso.core.cache.CacheTest
A test case to verify the functions of the Expresso CacheManager and related objects.
| Constructor Summary | |
CacheTest(String name)
Constructs a test case with the given name. |
|
| Method Summary | |
int |
countTestCases()
Counts the number of test cases executed by run(TestResult result). |
static void |
main(String[] args)
|
void |
setCacheName(String newName)
|
void |
setUp()
Sets up the fixture, for example, open a network connection. |
static junit.framework.Test |
suite()
Define the suite of tests that verify each function of the cache |
void |
tearDown()
Tears down the fixture, for example, close a network connection. |
void |
testCreateCache()
Test adding an item to a cache that does not exist to ensure it gets created |
void |
testCreateOrderedCache()
Test adding an item to a cache that does not exist to ensure it gets created |
void |
testMultipleItems()
Test multiple items to ensure the value and it's appropriate key are not being mixed up |
void |
testOrderedMultipleItems()
Test multiple items to ensure the value and it's appropriate key are not being mixed up |
void |
testRandomCaches()
All this class's goal is to try to test if we're going to get a java.util.ConcurrentModificationException or
java.lang.NullPointerException. |
void |
testRelatedCaches()
|
void |
testSimpleCaching()
Most basic possible test. |
void |
testSimpleOrderedCaching()
Most basic possible test. |
| Methods inherited from class com.jcorporate.expresso.services.test.ExpressoTestCase |
getLog |
| Methods inherited from class junit.framework.TestCase |
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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public CacheTest(String name)
throws Exception
name - the testname
Exception - upon instantiation error| Method Detail |
public static void main(String[] args)
throws Exception
Exceptionpublic void setCacheName(String newName)
newName - The new cache namepublic int countTestCases()
public void setUp()
throws Exception
setUp in class ExpressoTestCaseException
public void tearDown()
throws Exception
tearDown in class ExpressoTestCaseExceptionpublic void testSimpleCaching()
public void testSimpleOrderedCaching()
public void testMultipleItems()
public void testOrderedMultipleItems()
public void testCreateCache()
public void testCreateOrderedCache()
public void testRelatedCaches()
public static junit.framework.Test suite()
throws Exception
Exceptionpublic void testRandomCaches()
java.util.ConcurrentModificationException or
java.lang.NullPointerException. We write and trash various
cache names. We don't care if the values exist, we're just randomly
beating on the cache to try to get an exception
|
Expresso 5-5-0 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||