org.apache.commons.collections.iterators

Class AbstractTestOrderedMapIterator

public abstract class AbstractTestOrderedMapIterator extends AbstractTestMapIterator

Abstract class for testing the OrderedMapIterator interface.

This class provides a framework for testing an implementation of MapIterator. Concrete subclasses must provide the list iterator to be tested. They must also specify certain details of how the list iterator operates by overriding the supportsXxx() methods if necessary.

Since: Commons Collections 3.0

Constructor Summary
AbstractTestOrderedMapIterator(String testName)
JUnit constructor.
Method Summary
OrderedMapIteratormakeEmptyOrderedMapIterator()
OrderedMapIteratormakeFullOrderedMapIterator()
voidtestEmptyMapIterator()
Test that the empty list iterator contract is correct.
voidtestFullMapIterator()
Test that the full list iterator contract is correct.
voidtestMapIteratorOrder()
Test that the iterator order matches the keySet order.

Constructor Detail

AbstractTestOrderedMapIterator

public AbstractTestOrderedMapIterator(String testName)
JUnit constructor.

Parameters: testName the test class name

Method Detail

makeEmptyOrderedMapIterator

public final OrderedMapIterator makeEmptyOrderedMapIterator()

makeFullOrderedMapIterator

public final OrderedMapIterator makeFullOrderedMapIterator()

testEmptyMapIterator

public void testEmptyMapIterator()
Test that the empty list iterator contract is correct.

testFullMapIterator

public void testFullMapIterator()
Test that the full list iterator contract is correct.

testMapIteratorOrder

public void testMapIteratorOrder()
Test that the iterator order matches the keySet order.
Copyright © 2001-2009 Apache Software Foundation. All Rights Reserved.