Class AbstractTestSortedBidiMap
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.AbstractTestOrderedBidiMap
org.apache.commons.collections.bidimap.AbstractTestSortedBidiMap
- All Implemented Interfaces:
Cloneable,junit.framework.Test
Abstract test class for
SortedBidiMap methods and contracts.-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.commons.collections.bidimap.AbstractTestOrderedBidiMap
AbstractTestOrderedBidiMap.TestBidiOrderedMapIteratorNested 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
FieldsFields 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 TypeMethodDescriptionbooleanReturns 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.Override to return a map other than HashMap as the confirmed map.voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidMethods inherited from class org.apache.commons.collections.bidimap.AbstractTestOrderedBidiMap
bulkTestOrderedMapIterator, testFirstKey, testLastKey, testNextKey, testPreviousKeyMethods inherited from class org.apache.commons.collections.bidimap.AbstractTestBidiMap
bulkTestBidiMapIterator, bulkTestInverseMap, bulkTestMapEntrySet, getCompatibilityVersion, isAllowDuplicateValues, makeEmptyBidiMap, makeEmptyMap, makeFullBidiMap, 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, getSampleKeys, getSampleValues, isGetStructuralModify, isPutAddSupported, isPutChangeSupported, isRemoveSupported, isSetValueSupported, isSubMapViewsSerializable, 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, 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
-
Field Details
-
sortedKeys
-
sortedValues
-
sortedNewValues
-
-
Constructor Details
-
AbstractTestSortedBidiMap
-
AbstractTestSortedBidiMap
public AbstractTestSortedBidiMap()
-
-
Method Details
-
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
-
makeConfirmedMap
Description copied from class:AbstractTestMapOverride to return a map other than HashMap as the confirmed map.- Overrides:
makeConfirmedMapin classAbstractTestMap- Returns:
- a map that is known to be valid
-
testBidiHeadMapContains
public void testBidiHeadMapContains() -
testBidiClearByHeadMap
public void testBidiClearByHeadMap() -
testBidiRemoveByHeadMap
public void testBidiRemoveByHeadMap() -
testBidiRemoveByHeadMapEntrySet
public void testBidiRemoveByHeadMapEntrySet() -
testBidiTailMapContains
public void testBidiTailMapContains() -
testBidiClearByTailMap
public void testBidiClearByTailMap() -
testBidiRemoveByTailMap
public void testBidiRemoveByTailMap() -
testBidiRemoveByTailMapEntrySet
public void testBidiRemoveByTailMapEntrySet() -
testBidiSubMapContains
public void testBidiSubMapContains() -
testBidiClearBySubMap
public void testBidiClearBySubMap() -
testBidiRemoveBySubMap
public void testBidiRemoveBySubMap() -
testBidiRemoveBySubMapEntrySet
public void testBidiRemoveBySubMapEntrySet() -
bulkTestHeadMap
-
bulkTestTailMap
-
bulkTestSubMap
-