Class AbstractTestOrderedMapIterator

All Implemented Interfaces:
Cloneable, junit.framework.Test
Direct Known Subclasses:
AbstractTestOrderedMap.InnerTestOrderedMapIterator

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 Details

    • AbstractTestOrderedMapIterator

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

    • makeEmptyOrderedMapIterator

      public final org.apache.commons.collections.OrderedMapIterator makeEmptyOrderedMapIterator()
    • makeFullOrderedMapIterator

      public final org.apache.commons.collections.OrderedMapIterator makeFullOrderedMapIterator()
    • testEmptyMapIterator

      public void testEmptyMapIterator()
      Test that the empty list iterator contract is correct.
      Overrides:
      testEmptyMapIterator in class AbstractTestMapIterator
    • testFullMapIterator

      public void testFullMapIterator()
      Test that the full list iterator contract is correct.
      Overrides:
      testFullMapIterator in class AbstractTestMapIterator
    • testMapIteratorOrder

      public void testMapIteratorOrder()
      Test that the iterator order matches the keySet order.