| |
|
| org.apache.commons.collections.TestSequencedHashMap org.apache.commons.collections.TestLRUMap
TestLRUMap | public class TestLRUMap extends TestSequencedHashMap (Code) | | Tests LRUMap.
version: $Revision: 155406 $ $Date: 2005-02-26 12:55:26 +0000 (Sat, 26 Feb 2005) $ author: James Strachan author: Morgan Delagrange author: Stephen Colebourne |
entrySetEqualsMap | protected void entrySetEqualsMap(Set set, Map m)(Code) | | |
ignoredTests | public String[] ignoredTests()(Code) | | Override as test uses iterator() and getKey() in combination which doesn't work.
|
suite | public static Test suite()(Code) | | |
testGetPromotion | public void testGetPromotion()(Code) | | |
testLRUSubclass | public void testLRUSubclass()(Code) | | You should be able to subclass LRUMap and perform a
custom action when items are removed automatically
by the LRU algorithm (the removeLRU() method).
|
testMultiplePuts | public void testMultiplePuts()(Code) | | |
testPutAll | public void testPutAll()(Code) | | Confirm that putAll(Map) does not cause the LRUMap
to exceed its maxiumum size.
|
testRemoveLRU | public void testRemoveLRU()(Code) | | |
testSetMaximumSize | public void testSetMaximumSize()(Code) | | Test that the size of the map is reduced immediately
when setMaximumSize(int) is called
|
|
|
|