Class AbstractTestSortedMap.TestTailMap
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.TestTailMap
- All Implemented Interfaces:
Cloneable
,junit.framework.Test
- Enclosing class:
AbstractTestSortedMap
-
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 -
Method Summary
Modifier and TypeMethodDescriptionGets the compatability version, needed for package access.Return a new, emptyMap
to be used for testing.Return a new, populated map.void
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 Details
-
TestTailMap
-
-
Method Details
-
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
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
-
testTailMapOutOfRange
public void testTailMapOutOfRange() -
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.
-