|
Keel 2.1RC2 | ||||||||||
| 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.apache.commons.collections.BulkTest
org.apache.commons.collections.TestObject
org.apache.commons.collections.TestMap
org.apache.commons.collections.TestSequencedHashMap
org.apache.commons.collections.TestLRUMap
| Nested Class Summary | |
private class |
TestLRUMap.LRUCounter |
| Nested classes inherited from class org.apache.commons.collections.TestMap |
TestMap.TestMapEntrySet, TestMap.TestMapKeySet, TestMap.TestMapValues |
| Field Summary |
| Fields inherited from class org.apache.commons.collections.TestSequencedHashMap |
labRat |
| Fields inherited from class org.apache.commons.collections.TestMap |
confirmed, entrySet, keySet, map, values |
| Fields inherited from class org.apache.commons.collections.TestObject |
COLLECTIONS_MAJOR_VERSION |
| Fields inherited from class org.apache.commons.collections.BulkTest |
verboseName |
| Fields inherited from class junit.framework.TestCase |
|
| Constructor Summary | |
TestLRUMap(java.lang.String testName) |
|
| Method Summary | |
protected void |
entrySetEqualsMap(java.util.Set set, java.util.Map m) |
static void |
main(java.lang.String[] args) |
java.util.Map |
makeEmptyMap()Return a new, empty Map to be used for testing. |
static junit.framework.Test |
suite() |
void |
testGetPromotion() |
void |
testLRUSubclass()You should be able to subclass LRUMap and perform a custom action when items are removed automatically by the LRU algorithm (the removeLRU() method). |
void |
testMultiplePuts() |
void |
testPutAll()Confirm that putAll(Map) does not cause the LRUMap to exceed its maxiumum size. |
void |
testRemoveLRU() |
void |
testSetMaximumSize()Test that the size of the map is reduced immediately when setMaximumSize(int) is called |
| Methods inherited from class org.apache.commons.collections.TestSequencedHashMap |
getCompatibilityVersion, getKeys, getValues, main, setUp, tearDown, testFullMapSerialization, testSequenceMap, testYoungest, testYoungestReplaceNullWithValue, testYoungestReplaceValueWithNull |
| Methods inherited from class org.apache.commons.collections.BulkTest |
clone, ignoredSimpleTests, makeSuite, toString |
| Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, name, run, run, runBare, runTest, setName |
| Methods inherited from class junit.framework.Assert |
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public TestLRUMap(java.lang.String testName)
| Method Detail |
public static junit.framework.Test suite()
public static void main(java.lang.String[] args)
public java.util.Map makeEmptyMap()
TestMapMap to be used for testing.
makeEmptyMap in class TestSequencedHashMappublic void testRemoveLRU()
public void testMultiplePuts()
public void testPutAll()
public void testSetMaximumSize()
public void testGetPromotion()
public void testLRUSubclass()
protected void entrySetEqualsMap(java.util.Set set,
java.util.Map m)
|
Keel 2.1RC2 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||