Class AbstractTestOrderedMap
- 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.AbstractTestIterableMap
-
- org.apache.commons.collections.map.AbstractTestOrderedMap
-
- All Implemented Interfaces:
java.lang.Cloneable
,junit.framework.Test
public abstract class AbstractTestOrderedMap extends AbstractTestIterableMap
Abstract test class forOrderedMap
methods and contracts.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
AbstractTestOrderedMap.InnerTestOrderedMapIterator
-
Nested classes/interfaces inherited from class org.apache.commons.collections.map.AbstractTestIterableMap
AbstractTestIterableMap.InnerTestMapIterator
-
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.AbstractTestMap
confirmed, entrySet, keySet, map, values
-
Fields inherited from class org.apache.commons.collections.AbstractTestObject
COLLECTIONS_MAJOR_VERSION
-
-
Constructor Summary
Constructors Constructor Description AbstractTestOrderedMap(java.lang.String testName)
JUnit constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BulkTest
bulkTestOrderedMapIterator()
java.lang.Object[]
getSampleKeys()
The only confirmed collection we have that is ordered is the sorted one.java.util.Map
makeConfirmedMap()
OrderedMap uses TreeMap as its known comparison.void
testFirstKey()
void
testLastKey()
void
testNextKey()
void
testPreviousKey()
-
Methods inherited from class org.apache.commons.collections.map.AbstractTestIterableMap
bulkTestMapIterator, testFailFastEntrySet, testFailFastKeySet, testFailFastValues
-
Methods inherited from class org.apache.commons.collections.map.AbstractTestMap
addSampleMappings, bulkTestMapEntrySet, bulkTestMapKeySet, bulkTestMapValues, cloneMapEntry, getCompatibilityVersion, getNewSampleValues, getOtherKeys, getOtherNonNullStringElements, getOtherValues, getSampleValues, isAllowDuplicateValues, isAllowNullKey, isAllowNullValue, isGetStructuralModify, isPutAddSupported, isPutChangeSupported, isRemoveSupported, isSetValueSupported, isSubMapViewsSerializable, makeEmptyMap, makeFullMap, makeObject, resetEmpty, resetFull, 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, verify, verifyEntrySet, verifyKeySet, verifyMap, verifyValues
-
Methods inherited from class org.apache.commons.collections.AbstractTestObject
getCanonicalEmptyCollectionName, getCanonicalFullCollectionName, isEqualsCheckable, isTestSerialization, 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
-
-
-
-
Method Detail
-
makeConfirmedMap
public java.util.Map makeConfirmedMap()
OrderedMap uses TreeMap as its known comparison.- Overrides:
makeConfirmedMap
in classAbstractTestMap
- Returns:
- a map that is known to be valid
-
getSampleKeys
public java.lang.Object[] getSampleKeys()
The only confirmed collection we have that is ordered is the sorted one. Thus, sort the keys.- Overrides:
getSampleKeys
in classAbstractTestMap
-
testFirstKey
public void testFirstKey()
-
testLastKey
public void testLastKey()
-
testNextKey
public void testNextKey()
-
testPreviousKey
public void testPreviousKey()
-
bulkTestOrderedMapIterator
public BulkTest bulkTestOrderedMapIterator()
-
-