Class AbstractTestIterableMap.InnerTestMapIterator
- java.lang.Object
-
- junit.framework.Assert
-
- junit.framework.TestCase
-
- org.apache.commons.collections.BulkTest
-
- org.apache.commons.collections.AbstractTestObject
-
- org.apache.commons.collections.iterators.AbstractTestIterator
-
- org.apache.commons.collections.iterators.AbstractTestMapIterator
-
- org.apache.commons.collections.map.AbstractTestIterableMap.InnerTestMapIterator
-
- All Implemented Interfaces:
java.lang.Cloneable,junit.framework.Test
- Enclosing class:
- AbstractTestIterableMap
public class AbstractTestIterableMap.InnerTestMapIterator extends AbstractTestMapIterator
-
-
Field Summary
-
Fields inherited from class org.apache.commons.collections.AbstractTestObject
COLLECTIONS_MAJOR_VERSION
-
-
Constructor Summary
Constructors Constructor Description InnerTestMapIterator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object[]addSetValues()The values to be used in the add and set tests.java.util.MapgetConfirmedMap()Implement this method to return the confirmed map which contains the same data as the iterator.java.util.MapgetMap()Implement this method to return the map which contains the same data as the iterator.booleanisGetStructuralModify()Whether the get operation on the map structurally modifies the map, such as with LRUMap.org.apache.commons.collections.MapIteratormakeEmptyMapIterator()Implement this method to return a map iterator over an empty map.org.apache.commons.collections.MapIteratormakeFullMapIterator()Implement this method to return a map iterator over a map with elements.booleansupportsRemove()Whether or not we are testing an iterator that supports remove().booleansupportsSetValue()Whether or not we are testing an iterator that supports setValue().voidverify()Allows subclasses to add complex cross verification-
Methods inherited from class org.apache.commons.collections.iterators.AbstractTestMapIterator
makeEmptyIterator, makeFullIterator, testEmptyMapIterator, testFullMapIterator, testMapIteratorRemoveGetKey, testMapIteratorRemoveGetValue, testMapIteratorSet, testMapIteratorSetRemoveSet, testRemove
-
Methods inherited from class org.apache.commons.collections.iterators.AbstractTestIterator
makeObject, supportsEmptyIterator, supportsFullIterator, testEmptyIterator, testFullIterator
-
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
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, setUp, tearDown
-
-
-
-
Method Detail
-
addSetValues
public java.lang.Object[] addSetValues()
Description copied from class:AbstractTestMapIteratorThe values to be used in the add and set tests. Default is two strings.- Overrides:
addSetValuesin classAbstractTestMapIterator
-
supportsRemove
public boolean supportsRemove()
Description copied from class:AbstractTestIteratorWhether or not we are testing an iterator that supports remove(). Default is true.- Overrides:
supportsRemovein classAbstractTestIterator- Returns:
- true if Iterator supports remove
-
isGetStructuralModify
public boolean isGetStructuralModify()
Description copied from class:AbstractTestMapIteratorWhether the get operation on the map structurally modifies the map, such as with LRUMap. Default is false.- Overrides:
isGetStructuralModifyin classAbstractTestMapIterator- Returns:
- true if the get method structurally modifies the map
-
supportsSetValue
public boolean supportsSetValue()
Description copied from class:AbstractTestMapIteratorWhether or not we are testing an iterator that supports setValue(). Default is true.- Overrides:
supportsSetValuein classAbstractTestMapIterator- Returns:
- true if Iterator supports set
-
makeEmptyMapIterator
public org.apache.commons.collections.MapIterator makeEmptyMapIterator()
Description copied from class:AbstractTestMapIteratorImplement this method to return a map iterator over an empty map.- Specified by:
makeEmptyMapIteratorin classAbstractTestMapIterator- Returns:
- an empty iterator
-
makeFullMapIterator
public org.apache.commons.collections.MapIterator makeFullMapIterator()
Description copied from class:AbstractTestMapIteratorImplement this method to return a map iterator over a map with elements.- Specified by:
makeFullMapIteratorin classAbstractTestMapIterator- Returns:
- a full iterator
-
getMap
public java.util.Map getMap()
Description copied from class:AbstractTestMapIteratorImplement this method to return the map which contains the same data as the iterator.- Specified by:
getMapin classAbstractTestMapIterator- Returns:
- a full map which can be updated
-
getConfirmedMap
public java.util.Map getConfirmedMap()
Description copied from class:AbstractTestMapIteratorImplement this method to return the confirmed map which contains the same data as the iterator.- Specified by:
getConfirmedMapin classAbstractTestMapIterator- Returns:
- a full map which can be updated
-
verify
public void verify()
Description copied from class:AbstractTestIteratorAllows subclasses to add complex cross verification- Overrides:
verifyin classAbstractTestIterator
-
-