org.apache.commons.collections.map

Class AbstractTestOrderedMap


public abstract class AbstractTestOrderedMap
extends AbstractTestIterableMap

Abstract test class for OrderedMap methods and contracts.

Nested Class Summary

class
AbstractTestOrderedMap.InnerTestOrderedMapIterator

Constructor Summary

AbstractTestOrderedMap(String testName)
JUnit constructor.

Method Summary

BulkTest
bulkTestOrderedMapIterator()
Object[]
getSampleKeys()
The only confirmed collection we have that is ordered is the sorted one.
Map
makeConfirmedMap()
OrderedMap uses TreeMap as its known comparison.
void
testFirstKey()
void
testLastKey()
void
testNextKey()
void
testPreviousKey()

Constructor Details

AbstractTestOrderedMap

public AbstractTestOrderedMap(String testName)
JUnit constructor.
Parameters:
testName - the test name

Method Details

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-2015 Apache Software Foundation. All Rights Reserved.