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.TestViewMapNested 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, subSortedValuesFields inherited from class org.apache.commons.collections.map.AbstractTestMap
confirmed, entrySet, keySet, map, valuesFields 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, emptyMapto be used for testing.Return a new, populated map.voidMethods inherited from class org.apache.commons.collections.map.AbstractTestSortedMap.TestViewMap
bulkTestHeadMap, bulkTestSubMap, bulkTestTailMap, getNewSampleValues, getSampleKeys, getSampleValues, isAllowNullKey, isAllowNullValue, isPutAddSupported, isPutChangeSupported, isRemoveSupported, isTestSerialization, resetEmpty, resetFull, verifyMethods inherited from class org.apache.commons.collections.map.AbstractTestSortedMap
makeConfirmedMap, testComparator, testFirstKey, testLastKeyMethods 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, verifyValuesMethods 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, writeExternalFormToDiskMethods inherited from class org.apache.commons.collections.BulkTest
clone, ignoredTests, makeSuite, toStringMethods 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:AbstractTestMapReturn a new, emptyMapto be used for testing.- Specified by:
makeEmptyMapin classAbstractTestMap- Returns:
- the map to be tested
-
makeFullMap
Description copied from class:AbstractTestMapReturn 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:
makeFullMapin classAbstractTestMap- Returns:
- the map to be tested
-
testTailMapOutOfRange
public void testTailMapOutOfRange() -
getCompatibilityVersion
Description copied from class:AbstractTestMapGets the compatability version, needed for package access.- Overrides:
getCompatibilityVersionin classAbstractTestMap- Returns:
- The version, or
nullif this object shouldn't be tested for compatibility with previous versions.
-