org.apache.commons.collections.map

Class AbstractTestOrderedMap

public abstract class AbstractTestOrderedMap extends AbstractTestIterableMap

Abstract test class for OrderedMap methods and contracts.
Nested Class Summary
classAbstractTestOrderedMap.InnerTestOrderedMapIterator
Constructor Summary
AbstractTestOrderedMap(String testName)
JUnit constructor.
Method Summary
BulkTestbulkTestOrderedMapIterator()
Object[]getSampleKeys()
The only confirmed collection we have that is ordered is the sorted one.
MapmakeConfirmedMap()
OrderedMap uses TreeMap as its known comparison.
voidtestFirstKey()
voidtestLastKey()
voidtestNextKey()
voidtestPreviousKey()

Constructor Detail

AbstractTestOrderedMap

public AbstractTestOrderedMap(String testName)
JUnit constructor.

Parameters: testName the test name

Method Detail

bulkTestOrderedMapIterator

public BulkTest bulkTestOrderedMapIterator()

getSampleKeys

public Object[] getSampleKeys()
The only confirmed collection we have that is ordered is the sorted one. Thus, sort the keys.

makeConfirmedMap

public Map makeConfirmedMap()
OrderedMap uses TreeMap as its known comparison.

Returns: a map that is known to be valid

testFirstKey

public void testFirstKey()

testLastKey

public void testLastKey()

testNextKey

public void testNextKey()

testPreviousKey

public void testPreviousKey()
Copyright © 2001-2009 Apache Software Foundation. All Rights Reserved.