org.apache.commons.collections.iterators
Class AbstractTestOrderedMapIterator

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.commons.collections.BulkTest
              extended by org.apache.commons.collections.AbstractTestObject
                  extended by org.apache.commons.collections.iterators.AbstractTestIterator
                      extended by org.apache.commons.collections.iterators.AbstractTestMapIterator
                          extended by org.apache.commons.collections.iterators.AbstractTestOrderedMapIterator
All Implemented Interfaces:
java.lang.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

Field Summary
 
Fields inherited from class org.apache.commons.collections.AbstractTestObject
COLLECTIONS_MAJOR_VERSION
 
Constructor Summary
AbstractTestOrderedMapIterator(java.lang.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.
 
Methods inherited from class org.apache.commons.collections.iterators.AbstractTestMapIterator
addSetValues, getConfirmedMap, getMap, isGetStructuralModify, makeEmptyIterator, makeEmptyMapIterator, makeFullIterator, makeFullMapIterator, supportsSetValue, testMapIteratorRemoveGetKey, testMapIteratorRemoveGetValue, testMapIteratorSet, testMapIteratorSetRemoveSet, testRemove
 
Methods inherited from class org.apache.commons.collections.iterators.AbstractTestIterator
makeObject, supportsEmptyIterator, supportsFullIterator, supportsRemove, testEmptyIterator, testFullIterator, verify
 
Methods inherited from class org.apache.commons.collections.AbstractTestObject
getCanonicalEmptyCollectionName, getCanonicalFullCollectionName, getCompatibilityVersion, isEqualsCheckable, isTestSerialization, readExternalFormFromBytes, readExternalFormFromDisk, skipSerializedCanonicalTests, supportsEmptyCollections, supportsFullCollections, testCanonicalEmptyCollectionExists, testCanonicalFullCollectionExists, testEqualsNull, testObjectEqualsSelf, testObjectHashCodeEqualsContract, testObjectHashCodeEqualsSelfHashCode, testSerializeDeserializeThenCompare, testSimpleSerialization, writeExternalFormToBytes, writeExternalFormToDisk
 
Methods inherited from class org.apache.commons.collections.BulkTest
clone, ignoredTests, makeSuite, toString
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractTestOrderedMapIterator

public AbstractTestOrderedMapIterator(java.lang.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.

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.



Copyright © 2001-2010 Apache Software Foundation. All Rights Reserved.