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

OrderedMapIterator
makeEmptyOrderedMapIterator()
OrderedMapIterator
makeFullOrderedMapIterator()
void
testEmptyMapIterator()
Test that the empty list iterator contract is correct.
void
testFullMapIterator()
Test that the full list iterator contract is correct.
void
testMapIteratorOrder()
Test that the iterator order matches the keySet order.

Constructor Details

AbstractTestOrderedMapIterator

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

Method Details

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