Class AbstractTestMapIterator

    • Constructor Detail

      • AbstractTestMapIterator

        public AbstractTestMapIterator​(java.lang.String testName)
        JUnit constructor.
        Parameters:
        testName - the test class name
    • Method Detail

      • makeEmptyMapIterator

        public abstract org.apache.commons.collections.MapIterator makeEmptyMapIterator()
        Implement this method to return a map iterator over an empty map.
        Returns:
        an empty iterator
      • makeFullMapIterator

        public abstract org.apache.commons.collections.MapIterator makeFullMapIterator()
        Implement this method to return a map iterator over a map with elements.
        Returns:
        a full iterator
      • getMap

        public abstract java.util.Map getMap()
        Implement this method to return the map which contains the same data as the iterator.
        Returns:
        a full map which can be updated
      • getConfirmedMap

        public abstract java.util.Map getConfirmedMap()
        Implement this method to return the confirmed map which contains the same data as the iterator.
        Returns:
        a full map which can be updated
      • makeEmptyIterator

        public final java.util.Iterator makeEmptyIterator()
        Implements the abstract superclass method to return the list iterator.
        Specified by:
        makeEmptyIterator in class AbstractTestIterator
        Returns:
        an empty iterator
      • makeFullIterator

        public final java.util.Iterator makeFullIterator()
        Implements the abstract superclass method to return the list iterator.
        Specified by:
        makeFullIterator in class AbstractTestIterator
        Returns:
        a full iterator
      • supportsSetValue

        public boolean supportsSetValue()
        Whether or not we are testing an iterator that supports setValue(). Default is true.
        Returns:
        true if Iterator supports set
      • isGetStructuralModify

        public boolean isGetStructuralModify()
        Whether the get operation on the map structurally modifies the map, such as with LRUMap. Default is false.
        Returns:
        true if the get method structurally modifies the map
      • addSetValues

        public java.lang.Object[] addSetValues()
        The values to be used in the add and set tests. Default is two strings.
      • 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.
      • testMapIteratorSet

        public void testMapIteratorSet()
      • testMapIteratorSetRemoveSet

        public void testMapIteratorSetRemoveSet()
      • testMapIteratorRemoveGetKey

        public void testMapIteratorRemoveGetKey()
      • testMapIteratorRemoveGetValue

        public void testMapIteratorRemoveGetValue()