|
||||||||||
| 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.xenonsoft.bridgetown.test.TestContextCache
A unit test to configurate the context cache implementation
| Nested Class Summary | |
protected class |
TestContextCache.AttackerThread
Specialist attacker thread designed to assault the context cache implementation. |
| Field Summary | |
protected IContextCache |
contextCache
|
protected ContextConfig |
contextConfig
|
| Constructor Summary | |
TestContextCache()
|
|
| Method Summary | |
static void |
main(java.lang.String[] args)
Main program |
protected void |
setUp()
|
static junit.framework.Test |
suite()
|
protected void |
tearDown()
|
void |
testClear()
Test clear method of the context cache |
void |
testContains()
Test the containment method |
void |
testGetAndPutBean()
Test the basic get and put methods |
void |
testGetContextConfig()
Test retrieval of the context config |
void |
testGetServiceBeanNames()
Test retrieval of service bean names |
void |
testLongTermThreads()
Special test to check multiple threads operation |
void |
testRemoveBean()
Test removal of name bean |
void |
testSize()
Test the context cache size |
| 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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected IContextCache contextCache
protected ContextConfig contextConfig
| Constructor Detail |
public TestContextCache()
| Method Detail |
public static void main(java.lang.String[] args)
public static junit.framework.Test suite()
protected void setUp()
throws java.lang.Exception
java.lang.Exception
protected void tearDown()
throws java.lang.Exception
java.lang.Exceptionpublic void testGetContextConfig()
public void testGetAndPutBean()
public void testSize()
public void testContains()
public void testRemoveBean()
public void testGetServiceBeanNames()
public void testClear()
public void testLongTermThreads()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||