Class AbstractTestBidiMap.TestBidiMapIterator
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.bidimap.AbstractTestBidiMap.TestBidiMapIterator
- All Implemented Interfaces:
Cloneable
,junit.framework.Test
- Enclosing class:
- AbstractTestBidiMap
-
Field Summary
Fields inherited from class org.apache.commons.collections.AbstractTestObject
COLLECTIONS_MAJOR_VERSION
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionObject[]
The values to be used in the add and set tests.Implement this method to return the confirmed map which contains the same data as the iterator.getMap()
Implement this method to return the map which contains the same data as the iterator.org.apache.commons.collections.MapIterator
Implement this method to return a map iterator over an empty map.org.apache.commons.collections.MapIterator
Implement this method to return a map iterator over a map with elements.boolean
Whether or not we are testing an iterator that supports remove().boolean
Whether or not we are testing an iterator that supports setValue().void
verify()
Allows subclasses to add complex cross verificationMethods inherited from class org.apache.commons.collections.iterators.AbstractTestMapIterator
isGetStructuralModify, 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
-
Constructor Details
-
TestBidiMapIterator
public TestBidiMapIterator()
-
-
Method Details
-
addSetValues
Description copied from class:AbstractTestMapIterator
The values to be used in the add and set tests. Default is two strings.- Overrides:
addSetValues
in classAbstractTestMapIterator
-
supportsRemove
public boolean supportsRemove()Description copied from class:AbstractTestIterator
Whether or not we are testing an iterator that supports remove(). Default is true.- Overrides:
supportsRemove
in classAbstractTestIterator
- Returns:
- true if Iterator supports remove
-
supportsSetValue
public boolean supportsSetValue()Description copied from class:AbstractTestMapIterator
Whether or not we are testing an iterator that supports setValue(). Default is true.- Overrides:
supportsSetValue
in classAbstractTestMapIterator
- Returns:
- true if Iterator supports set
-
makeEmptyMapIterator
public org.apache.commons.collections.MapIterator makeEmptyMapIterator()Description copied from class:AbstractTestMapIterator
Implement this method to return a map iterator over an empty map.- Specified by:
makeEmptyMapIterator
in classAbstractTestMapIterator
- Returns:
- an empty iterator
-
makeFullMapIterator
public org.apache.commons.collections.MapIterator makeFullMapIterator()Description copied from class:AbstractTestMapIterator
Implement this method to return a map iterator over a map with elements.- Specified by:
makeFullMapIterator
in classAbstractTestMapIterator
- Returns:
- a full iterator
-
getMap
Description copied from class:AbstractTestMapIterator
Implement this method to return the map which contains the same data as the iterator.- Specified by:
getMap
in classAbstractTestMapIterator
- Returns:
- a full map which can be updated
-
getConfirmedMap
Description copied from class:AbstractTestMapIterator
Implement this method to return the confirmed map which contains the same data as the iterator.- Specified by:
getConfirmedMap
in classAbstractTestMapIterator
- Returns:
- a full map which can be updated
-
verify
public void verify()Description copied from class:AbstractTestIterator
Allows subclasses to add complex cross verification- Overrides:
verify
in classAbstractTestIterator
-