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.TestBidiOrderedMapIterator
Nested classes/interfaces inherited from class org.apache.commons.collections.bidimap.AbstractTestBidiMap
AbstractTestBidiMap.TestBidiMapEntrySet, AbstractTestBidiMap.TestBidiMapIterator, AbstractTestBidiMap.TestInverseBidiMap
Nested 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
entries
Fields inherited from class org.apache.commons.collections.map.AbstractTestMap
confirmed, entrySet, keySet, map, values
Fields inherited from class org.apache.commons.collections.AbstractTestObject
COLLECTIONS_MAJOR_VERSION
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns true if the maps produced byAbstractTestMap.makeEmptyMap()
andAbstractTestMap.makeFullMap()
supports null keys.boolean
Returns true if the maps produced byAbstractTestMap.makeEmptyMap()
andAbstractTestMap.makeFullMap()
supports null values.Override to return a map other than HashMap as the confirmed map.void
void
void
void
void
void
void
void
void
void
void
void
Methods inherited from class org.apache.commons.collections.bidimap.AbstractTestOrderedBidiMap
bulkTestOrderedMapIterator, testFirstKey, testLastKey, testNextKey, testPreviousKey
Methods 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, verifyInverse
Methods 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, verifyValues
Methods 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, 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
-
Field Details
-
sortedKeys
-
sortedValues
-
sortedNewValues
-
-
Constructor Details
-
AbstractTestSortedBidiMap
-
AbstractTestSortedBidiMap
public AbstractTestSortedBidiMap()
-
-
Method Details
-
isAllowNullKey
public boolean isAllowNullKey()Description copied from class:AbstractTestMap
Returns 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:
isAllowNullKey
in classAbstractTestMap
-
isAllowNullValue
public boolean isAllowNullValue()Description copied from class:AbstractTestMap
Returns 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:
isAllowNullValue
in classAbstractTestMap
-
makeConfirmedMap
Description copied from class:AbstractTestMap
Override to return a map other than HashMap as the confirmed map.- Overrides:
makeConfirmedMap
in 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
-