org.apache.commons.collections
Class TestMultiHashMap
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.apache.commons.collections.BulkTest
org.apache.commons.collections.TestObject
org.apache.commons.collections.TestMap
org.apache.commons.collections.TestMultiHashMap
- All Implemented Interfaces:
- java.lang.Cloneable, junit.framework.Test
- public class TestMultiHashMap
- extends TestMap
Unit Tests for MultiHashMap.
| Fields inherited from class junit.framework.TestCase |
|
| Methods inherited from class org.apache.commons.collections.TestMap |
addSampleMappings, bulkTestMapEntrySet, bulkTestMapKeySet, bulkTestMapValues, getNewSampleValues, getOtherKeys, getOtherValues, getSampleKeys, getSampleValues, isAddRemoveModifiable, isChangeable, makeFullMap, makeObject, resetEmpty, resetFull, tearDown, testEmptyMapCompatibility, testFullMapCompatibility, testMakeMap, testMapClear, testMapContainsKey, testMapContainsValue, testMapIsEmpty, testMapSize, testMapToString, testSampleMappings, useDuplicateValues, useNullKey, useNullValue, verify, verifyKeySet |
| Methods inherited from class org.apache.commons.collections.TestObject |
getCanonicalEmptyCollectionName, getCanonicalFullCollectionName, readExternalFormFromBytes, readExternalFormFromDisk, supportsEmptyCollections, supportsFullCollections, testCanonicalEmptyCollectionExists, testCanonicalFullCollectionExists, testObjectEqualsSelf, testObjectHashCodeEqualsContract, testObjectHashCodeEqualsSelfHashCode, testSimpleSerialization, writeExternalFormToBytes, writeExternalFormToDisk |
| Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, name, run, run, runBare, runTest, setName, setUp |
| 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 |
sMapPairs
private static TestMultiHashMap.MapPair[][] sMapPairs
-
TestMultiHashMap
public TestMultiHashMap(java.lang.String testName)
suite
public static junit.framework.Test suite()
-
main
public static void main(java.lang.String[] args)
-
getCompatibilityVersion
public int getCompatibilityVersion()
- Description copied from class:
TestObject
-
This constant makes it possible for TestMap (and other subclasses, if necessary) to automatically check CVS for a versionX copy of a Serialized object, so we can make sure that compatibility is maintained. See, for example, TestMap.getCanonicalFullMapName(Map map). Subclasses can override this variable, indicating compatibility with earlier Collections versions. Defaults to 1, the earliest Collections version. (Note: some collections did not even exist in this version).
-
- Overrides:
getCompatibilityVersion in class TestObject
-
- Returns:
- 1
makeEmptyMap
public java.util.Map makeEmptyMap()
- Description copied from class:
TestMap
-
Return a new, empty
Map to be used for testing.
-
- Specified by:
makeEmptyMap in class TestMap
-
testPutNGet
public void testPutNGet()
-
testContainsValue
public void testContainsValue()
-
testValues
public void testValues()
-
loadMap
private void loadMap(MultiHashMap map)
-
checkMap
private void checkMap(MultiHashMap map)
-
checkKeyList
private void checkKeyList(MultiHashMap map,
int index)
-
getFullSize
public int getFullSize()
-
testEntrySetIterator
public void testEntrySetIterator()
-
testEntrySetContainsProperMappings
public void testEntrySetContainsProperMappings()
-
testEntrySetIteratorHasProperMappings
public void testEntrySetIteratorHasProperMappings()
-
testMapGet
public void testMapGet()
- Description copied from class:
TestMap
-
Tests Map.get(Object)
-
- Overrides:
testMapGet in class TestMap
-
testMapPut
public void testMapPut()
- Description copied from class:
TestMap
-
Tests Map.put(Object, Object)
-
- Overrides:
testMapPut in class TestMap
-
testMapPutAll
public void testMapPutAll()
- Description copied from class:
TestMap
-
Tests Map.putAll(Collection)
-
- Overrides:
testMapPutAll in class TestMap
-
testMapRemove
public void testMapRemove()
- Description copied from class:
TestMap
-
Tests Map.remove(Object)
-
- Overrides:
testMapRemove in class TestMap
-
testMapEquals
public void testMapEquals()
- Description copied from class:
TestMap
-
Tests Map.equals(Object)
-
- Overrides:
testMapEquals in class TestMap
-
testMapHashCode
public void testMapHashCode()
- Description copied from class:
TestMap
-
Tests Map.hashCode()
-
- Overrides:
testMapHashCode in class TestMap
-
verifyMap
public void verifyMap()
-
- Overrides:
verifyMap in class TestMap
-
verifyEntrySet
public void verifyEntrySet()
-
- Overrides:
verifyEntrySet in class TestMap
-
verifyValues
public void verifyValues()
-
- Overrides:
verifyValues in class TestMap
-
Please see keelframework.org for information about new Keel releases.