Keel 2.1RC2

org.apache.commons.collections
Class TestMultiHashMap

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.apache.commons.collections.BulkTest
              extended byorg.apache.commons.collections.TestObject
                  extended byorg.apache.commons.collections.TestMap
                      extended byorg.apache.commons.collections.TestMultiHashMap
All Implemented Interfaces:
java.lang.Cloneable, junit.framework.Test

public class TestMultiHashMap
extends TestMap

Unit Tests for MultiHashMap.


Nested Class Summary
private static class TestMultiHashMap.MapPair
           
 
Nested classes inherited from class org.apache.commons.collections.TestMap
TestMap.TestMapEntrySet, TestMap.TestMapKeySet, TestMap.TestMapValues
 
Field Summary
private static TestMultiHashMap.MapPair[][] sMapPairs
           
 
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
TestMultiHashMap(java.lang.String testName)
           
 
Method Summary
private  void checkKeyList(MultiHashMap map, int index)
           
private  void checkMap(MultiHashMap map)
           
 int getCompatibilityVersion()
          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.
 int getFullSize()
           
private  void loadMap(MultiHashMap map)
           
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 testContainsValue()
           
 void testEntrySetContainsProperMappings()
           
 void testEntrySetIterator()
           
 void testEntrySetIteratorHasProperMappings()
           
 void testMapEquals()
          Tests Map.equals(Object)
 void testMapGet()
          Tests Map.get(Object)
 void testMapHashCode()
          Tests Map.hashCode()
 void testMapPut()
          Tests Map.put(Object, Object)
 void testMapPutAll()
          Tests Map.putAll(Collection)
 void testMapRemove()
          Tests Map.remove(Object)
 void testPutNGet()
           
 void testValues()
           
 void verifyEntrySet()
           
 void verifyMap()
           
 void verifyValues()
           
 
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 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, 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
 

Field Detail

sMapPairs

private static TestMultiHashMap.MapPair[][] sMapPairs
Constructor Detail

TestMultiHashMap

public TestMultiHashMap(java.lang.String testName)
Method Detail

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

Keel 2.1RC2

Please see keelframework.org for information about new Keel releases.