Class AbstractTestBidiMap.TestInverseBidiMap
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.apache.commons.collections.BulkTest
org.apache.commons.collections.AbstractTestObject
org.apache.commons.collections.map.AbstractTestMap
org.apache.commons.collections.bidimap.AbstractTestBidiMap
org.apache.commons.collections.bidimap.AbstractTestBidiMap.TestInverseBidiMap
- All Implemented Interfaces:
Cloneable,junit.framework.Test
- Enclosing class:
AbstractTestBidiMap
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.commons.collections.bidimap.AbstractTestBidiMap
AbstractTestBidiMap.TestBidiMapEntrySet, AbstractTestBidiMap.TestBidiMapIterator, AbstractTestBidiMap.TestInverseBidiMapNested classes/interfaces inherited from class org.apache.commons.collections.map.AbstractTestMap
AbstractTestMap.TestMapEntrySet, AbstractTestMap.TestMapKeySet, AbstractTestMap.TestMapValues -
Field Summary
Fields inherited from class org.apache.commons.collections.bidimap.AbstractTestBidiMap
entriesFields inherited from class org.apache.commons.collections.map.AbstractTestMap
confirmed, entrySet, keySet, map, valuesFields inherited from class org.apache.commons.collections.AbstractTestObject
COLLECTIONS_MAJOR_VERSION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionOverride as DualHashBidiMap didn't exist until version 3.Object[]Returns the set of keys in the mappings used to test the map.Object[]Returns the set of values in the mappings used to test the map.booleanReturns true if the maps produced byAbstractTestMap.makeEmptyMap()andAbstractTestMap.makeFullMap()supports null keys.booleanReturns true if the maps produced byAbstractTestMap.makeEmptyMap()andAbstractTestMap.makeFullMap()supports null values.booleanReturns true if the maps produced byAbstractTestMap.makeEmptyMap()andAbstractTestMap.makeFullMap()support theputandputAlloperations adding new mappings.booleanReturns true if the maps produced byAbstractTestMap.makeEmptyMap()andAbstractTestMap.makeFullMap()support theputandputAlloperations changing existing mappings.booleanReturns true if the maps produced byAbstractTestMap.makeEmptyMap()andAbstractTestMap.makeFullMap()support theremoveandclearoperations.booleanReturns true if the maps produced byAbstractTestMap.makeEmptyMap()andAbstractTestMap.makeFullMap()support thesetValueoperation on entrySet entries.org.apache.commons.collections.BidiMapImplement to create an emptyBidiMap.org.apache.commons.collections.BidiMapOverride to create a fullBidiMapother than the default.Return a new, populated map.Methods inherited from class org.apache.commons.collections.bidimap.AbstractTestBidiMap
bulkTestBidiMapIterator, bulkTestInverseMap, bulkTestMapEntrySet, isAllowDuplicateValues, makeEmptyMap, testBidiClear, testBidiGetKey, testBidiGetKeyInverse, testBidiInverse, testBidiKeySetValuesOrder, testBidiMapIteratorSet, testBidiModifyEntrySet, testBidiPut, testBidiRemove, testBidiRemoveByEntrySet, testBidiRemoveByKeySet, verify, verifyInverseMethods inherited from class org.apache.commons.collections.map.AbstractTestMap
addSampleMappings, bulkTestMapKeySet, bulkTestMapValues, cloneMapEntry, getNewSampleValues, getOtherKeys, getOtherNonNullStringElements, getOtherValues, isGetStructuralModify, isSubMapViewsSerializable, makeConfirmedMap, 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, verifyValuesMethods inherited from class org.apache.commons.collections.AbstractTestObject
getCanonicalEmptyCollectionName, getCanonicalFullCollectionName, isEqualsCheckable, isTestSerialization, readExternalFormFromBytes, readExternalFormFromDisk, skipSerializedCanonicalTests, supportsEmptyCollections, supportsFullCollections, testCanonicalEmptyCollectionExists, testCanonicalFullCollectionExists, testEqualsNull, testObjectEqualsSelf, testObjectHashCodeEqualsContract, testObjectHashCodeEqualsSelfHashCode, testSerializeDeserializeThenCompare, testSimpleSerialization, writeExternalFormToBytes, writeExternalFormToDiskMethods inherited from class org.apache.commons.collections.BulkTest
clone, ignoredTests, makeSuite, toStringMethods 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
-
Constructor Details
-
TestInverseBidiMap
-
-
Method Details
-
makeEmptyBidiMap
public org.apache.commons.collections.BidiMap makeEmptyBidiMap()Description copied from class:AbstractTestBidiMapImplement to create an emptyBidiMap.- Specified by:
makeEmptyBidiMapin classAbstractTestBidiMap- Returns:
- an empty
BidiMapimplementation.
-
makeFullBidiMap
public org.apache.commons.collections.BidiMap makeFullBidiMap()Description copied from class:AbstractTestBidiMapOverride to create a fullBidiMapother than the default.- Overrides:
makeFullBidiMapin classAbstractTestBidiMap- Returns:
- a full
BidiMapimplementation.
-
makeFullMap
Description copied from class:AbstractTestMapReturn a new, populated map. The mappings in the map should match the keys and values returned fromAbstractTestMap.getSampleKeys()andAbstractTestMap.getSampleValues(). The default implementation uses makeEmptyMap() and callsAbstractTestMap.addSampleMappings(java.util.Map)to add all the mappings to the map.- Overrides:
makeFullMapin classAbstractTestMap- Returns:
- the map to be tested
-
getSampleKeys
Description copied from class:AbstractTestMapReturns the set of keys in the mappings used to test the map. This method must return an array with the same length asAbstractTestMap.getSampleValues()and all array elements must be different. The default implementation constructs a set of String keys, and includes a single null key ifAbstractTestMap.isAllowNullKey()returnstrue.- Overrides:
getSampleKeysin classAbstractTestMap
-
getSampleValues
Description copied from class:AbstractTestMapReturns the set of values in the mappings used to test the map. This method must return an array with the same length asAbstractTestMap.getSampleKeys(). The default implementation constructs a set of String values and includes a single null value ifAbstractTestMap.isAllowNullValue()returnstrue, and includes two values that are the same ifAbstractTestMap.isAllowDuplicateValues()returnstrue.- Overrides:
getSampleValuesin classAbstractTestMap
-
getCompatibilityVersion
Description copied from class:AbstractTestBidiMapOverride as DualHashBidiMap didn't exist until version 3.- Overrides:
getCompatibilityVersionin classAbstractTestBidiMap- Returns:
- The version, or
nullif this object shouldn't be tested for compatibility with previous versions.
-
isAllowNullKey
public boolean isAllowNullKey()Description copied from class:AbstractTestMapReturns true if the maps produced byAbstractTestMap.makeEmptyMap()andAbstractTestMap.makeFullMap()supports null keys.Default implementation returns true. Override if your collection class does not support null keys.
- Overrides:
isAllowNullKeyin classAbstractTestMap
-
isAllowNullValue
public boolean isAllowNullValue()Description copied from class:AbstractTestMapReturns true if the maps produced byAbstractTestMap.makeEmptyMap()andAbstractTestMap.makeFullMap()supports null values.Default implementation returns true. Override if your collection class does not support null values.
- Overrides:
isAllowNullValuein classAbstractTestMap
-
isPutAddSupported
public boolean isPutAddSupported()Description copied from class:AbstractTestMapReturns true if the maps produced byAbstractTestMap.makeEmptyMap()andAbstractTestMap.makeFullMap()support theputandputAlloperations adding new mappings.Default implementation returns true. Override if your collection class does not support put adding.
- Overrides:
isPutAddSupportedin classAbstractTestMap
-
isPutChangeSupported
public boolean isPutChangeSupported()Description copied from class:AbstractTestMapReturns true if the maps produced byAbstractTestMap.makeEmptyMap()andAbstractTestMap.makeFullMap()support theputandputAlloperations changing existing mappings.Default implementation returns true. Override if your collection class does not support put changing.
- Overrides:
isPutChangeSupportedin classAbstractTestMap
-
isSetValueSupported
public boolean isSetValueSupported()Description copied from class:AbstractTestMapReturns true if the maps produced byAbstractTestMap.makeEmptyMap()andAbstractTestMap.makeFullMap()support thesetValueoperation on entrySet entries.Default implementation returns isPutChangeSupported(). Override if your collection class does not support setValue but does support put changing.
- Overrides:
isSetValueSupportedin classAbstractTestMap
-
isRemoveSupported
public boolean isRemoveSupported()Description copied from class:AbstractTestMapReturns true if the maps produced byAbstractTestMap.makeEmptyMap()andAbstractTestMap.makeFullMap()support theremoveandclearoperations.Default implementation returns true. Override if your collection class does not support removal operations.
- Overrides:
isRemoveSupportedin classAbstractTestMap
-