public abstract class AbstractTestBidiMap extends AbstractTestMap
BidiMap
methods and contracts.Modifier and Type | Class and Description |
---|---|
class |
AbstractTestBidiMap.TestBidiMapEntrySet |
class |
AbstractTestBidiMap.TestBidiMapIterator |
class |
AbstractTestBidiMap.TestInverseBidiMap |
AbstractTestMap.TestMapEntrySet, AbstractTestMap.TestMapKeySet, AbstractTestMap.TestMapValues
Modifier and Type | Field and Description |
---|---|
protected java.lang.Object[][] |
entries |
confirmed, entrySet, keySet, map, values
COLLECTIONS_MAJOR_VERSION
Constructor and Description |
---|
AbstractTestBidiMap() |
AbstractTestBidiMap(java.lang.String testName) |
Modifier and Type | Method and Description |
---|---|
BulkTest |
bulkTestBidiMapIterator() |
BulkTest |
bulkTestInverseMap() |
BulkTest |
bulkTestMapEntrySet()
Bulk test
Map.entrySet() . |
java.lang.String |
getCompatibilityVersion()
Override as DualHashBidiMap didn't exist until version 3.
|
boolean |
isAllowDuplicateValues()
Override to indicate to AbstractTestMap this is a BidiMap.
|
abstract org.apache.commons.collections.BidiMap |
makeEmptyBidiMap()
Implement to create an empty
BidiMap . |
java.util.Map |
makeEmptyMap()
Override to return the empty BidiMap.
|
org.apache.commons.collections.BidiMap |
makeFullBidiMap()
Override to create a full
BidiMap other than the default. |
void |
testBidiClear() |
void |
testBidiGetKey() |
void |
testBidiGetKeyInverse() |
void |
testBidiInverse() |
void |
testBidiKeySetValuesOrder() |
void |
testBidiMapIteratorSet() |
void |
testBidiModifyEntrySet() |
void |
testBidiPut() |
void |
testBidiRemove() |
void |
testBidiRemoveByEntrySet() |
void |
testBidiRemoveByKeySet() |
void |
verify()
Verifies that
AbstractTestMap.map is still equal to AbstractTestMap.confirmed . |
void |
verifyInverse() |
addSampleMappings, bulkTestMapKeySet, bulkTestMapValues, cloneMapEntry, getNewSampleValues, getOtherKeys, getOtherNonNullStringElements, getOtherValues, getSampleKeys, getSampleValues, isAllowNullKey, isAllowNullValue, isGetStructuralModify, isPutAddSupported, isPutChangeSupported, isRemoveSupported, isSetValueSupported, isSubMapViewsSerializable, makeConfirmedMap, makeFullMap, makeObject, resetEmpty, resetFull, tearDown, testEmptyMapCompatibility, testEntrySetClearChangesMap, testEntrySetContains1, testEntrySetContains2, testEntrySetContains3, testEntrySetRemove1, testEntrySetRemove2, testEntrySetRemove3, testFullMapCompatibility, testKeySetClearChangesMap, testKeySetRemoveChangesMap, testMakeMap, testMapClear, testMapContainsKey, testMapContainsValue, testMapEquals, testMapGet, testMapHashCode, testMapIsEmpty, testMapPut, testMapPutAll, testMapPutNullKey, testMapPutNullValue, testMapRemove, testMapSize, testMapToString, testSampleMappings, testValuesClearChangesMap, testValuesRemoveChangesMap, verifyEntrySet, verifyKeySet, verifyMap, verifyValues
getCanonicalEmptyCollectionName, getCanonicalFullCollectionName, isEqualsCheckable, isTestSerialization, readExternalFormFromBytes, readExternalFormFromDisk, skipSerializedCanonicalTests, supportsEmptyCollections, supportsFullCollections, testCanonicalEmptyCollectionExists, testCanonicalFullCollectionExists, testEqualsNull, testObjectEqualsSelf, testObjectHashCodeEqualsContract, testObjectHashCodeEqualsSelfHashCode, testSerializeDeserializeThenCompare, testSimpleSerialization, writeExternalFormToBytes, writeExternalFormToDisk
clone, ignoredTests, makeSuite, toString
public AbstractTestBidiMap(java.lang.String testName)
public AbstractTestBidiMap()
public abstract org.apache.commons.collections.BidiMap makeEmptyBidiMap()
BidiMap
.BidiMap
implementation.public org.apache.commons.collections.BidiMap makeFullBidiMap()
BidiMap
other than the default.BidiMap
implementation.public final java.util.Map makeEmptyMap()
makeEmptyMap
in class AbstractTestMap
public boolean isAllowDuplicateValues()
isAllowDuplicateValues
in class AbstractTestMap
public java.lang.String getCompatibilityVersion()
getCompatibilityVersion
in class AbstractTestMap
null
if this object shouldn't be
tested for compatibility with previous versions.public void testBidiPut()
public void verify()
AbstractTestMap.map
is still equal to AbstractTestMap.confirmed
.
This implementation checks the inverse map as well.
verify
in class AbstractTestMap
public void verifyInverse()
public void testBidiGetKey()
public void testBidiGetKeyInverse()
public void testBidiInverse()
public void testBidiModifyEntrySet()
public void testBidiClear()
public void testBidiRemove()
public void testBidiKeySetValuesOrder()
public void testBidiRemoveByKeySet()
public void testBidiRemoveByEntrySet()
public BulkTest bulkTestMapEntrySet()
AbstractTestMap
Map.entrySet()
. This method runs through all of
the tests in AbstractTestSet
.
After modification operations, AbstractTestMap.verify()
is invoked to ensure
that the map and the other collection views are still valid.bulkTestMapEntrySet
in class AbstractTestMap
AbstractTestSet
instance for testing the map's entry setpublic BulkTest bulkTestInverseMap()
public BulkTest bulkTestBidiMapIterator()
public void testBidiMapIteratorSet()
Copyright © 2001-2014 Apache Software Foundation. All Rights Reserved.