Class AbstractTestSortedMap.TestHeadMap
- java.lang.Object
-
- junit.framework.Assert
-
- junit.framework.TestCase
-
- org.apache.commons.collections.BulkTest
-
- org.apache.commons.collections.AbstractTestObject
-
- org.apache.commons.collections.map.AbstractTestMap
-
- org.apache.commons.collections.map.AbstractTestSortedMap
-
- org.apache.commons.collections.map.AbstractTestSortedMap.TestViewMap
-
- org.apache.commons.collections.map.AbstractTestSortedMap.TestHeadMap
-
- All Implemented Interfaces:
java.lang.Cloneable
,junit.framework.Test
- Enclosing class:
- AbstractTestSortedMap
public static class AbstractTestSortedMap.TestHeadMap extends AbstractTestSortedMap.TestViewMap
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.commons.collections.map.AbstractTestSortedMap
AbstractTestSortedMap.TestHeadMap, AbstractTestSortedMap.TestSubMap, AbstractTestSortedMap.TestTailMap, AbstractTestSortedMap.TestViewMap
-
Nested classes/interfaces inherited from class org.apache.commons.collections.map.AbstractTestMap
AbstractTestMap.TestMapEntrySet, AbstractTestMap.TestMapKeySet, AbstractTestMap.TestMapValues
-
-
Field Summary
-
Fields inherited from class org.apache.commons.collections.map.AbstractTestSortedMap.TestViewMap
main, subSortedKeys, subSortedNewValues, subSortedValues
-
Fields inherited from class org.apache.commons.collections.map.AbstractTestMap
confirmed, entrySet, keySet, map, values
-
Fields inherited from class org.apache.commons.collections.AbstractTestObject
COLLECTIONS_MAJOR_VERSION
-
-
Constructor Summary
Constructors Constructor Description TestHeadMap(AbstractTestMap main)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getCompatibilityVersion()
Gets the compatability version, needed for package access.java.util.Map
makeEmptyMap()
Return a new, emptyMap
to be used for testing.java.util.Map
makeFullMap()
Return a new, populated map.void
testHeadMapOutOfRange()
-
Methods inherited from class org.apache.commons.collections.map.AbstractTestSortedMap.TestViewMap
bulkTestHeadMap, bulkTestSubMap, bulkTestTailMap, getNewSampleValues, getSampleKeys, getSampleValues, isAllowNullKey, isAllowNullValue, isPutAddSupported, isPutChangeSupported, isRemoveSupported, isTestSerialization, resetEmpty, resetFull, verify
-
Methods inherited from class org.apache.commons.collections.map.AbstractTestSortedMap
makeConfirmedMap, testComparator, testFirstKey, testLastKey
-
Methods inherited from class org.apache.commons.collections.map.AbstractTestMap
addSampleMappings, bulkTestMapEntrySet, bulkTestMapKeySet, bulkTestMapValues, cloneMapEntry, getOtherKeys, getOtherNonNullStringElements, getOtherValues, isAllowDuplicateValues, isGetStructuralModify, isSetValueSupported, isSubMapViewsSerializable, makeObject, tearDown, testEmptyMapCompatibility, testEntrySetClearChangesMap, testEntrySetContains1, testEntrySetContains2, testEntrySetContains3, testEntrySetRemove1, testEntrySetRemove2, testEntrySetRemove3, testFullMapCompatibility, testKeySetClearChangesMap, testKeySetRemoveChangesMap, testMakeMap, testMapClear, testMapContainsKey, testMapContainsValue, testMapEquals, testMapGet, testMapHashCode, testMapIsEmpty, testMapPut, testMapPutAll, testMapPutNullKey, testMapPutNullValue, testMapRemove, testMapSize, testMapToString, testSampleMappings, testValuesClearChangesMap, testValuesRemoveChangesMap, verifyEntrySet, verifyKeySet, verifyMap, verifyValues
-
Methods inherited from class org.apache.commons.collections.AbstractTestObject
getCanonicalEmptyCollectionName, getCanonicalFullCollectionName, isEqualsCheckable, readExternalFormFromBytes, readExternalFormFromDisk, skipSerializedCanonicalTests, supportsEmptyCollections, supportsFullCollections, testCanonicalEmptyCollectionExists, testCanonicalFullCollectionExists, testEqualsNull, testObjectEqualsSelf, testObjectHashCodeEqualsContract, testObjectHashCodeEqualsSelfHashCode, testSerializeDeserializeThenCompare, testSimpleSerialization, writeExternalFormToBytes, writeExternalFormToDisk
-
Methods inherited from class org.apache.commons.collections.BulkTest
clone, ignoredTests, makeSuite, toString
-
Methods inherited from class junit.framework.TestCase
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, setUp
-
-
-
-
Constructor Detail
-
TestHeadMap
public TestHeadMap(AbstractTestMap main)
-
-
Method Detail
-
makeEmptyMap
public java.util.Map makeEmptyMap()
Description copied from class:AbstractTestMap
Return a new, emptyMap
to be used for testing.- Specified by:
makeEmptyMap
in classAbstractTestMap
- Returns:
- the map to be tested
-
makeFullMap
public java.util.Map makeFullMap()
Description copied from class:AbstractTestMap
Return a new, populated map. The mappings in the map should match the keys and values returned fromAbstractTestMap.getSampleKeys()
andAbstractTestMap.getSampleValues()
. The default implementation uses makeEmptyMap() and callsAbstractTestMap.addSampleMappings(java.util.Map)
to add all the mappings to the map.- Overrides:
makeFullMap
in classAbstractTestMap
- Returns:
- the map to be tested
-
testHeadMapOutOfRange
public void testHeadMapOutOfRange()
-
getCompatibilityVersion
public java.lang.String getCompatibilityVersion()
Description copied from class:AbstractTestMap
Gets the compatability version, needed for package access.- Overrides:
getCompatibilityVersion
in classAbstractTestMap
- Returns:
- The version, or
null
if this object shouldn't be tested for compatibility with previous versions.
-
-