org.apache.commons.collections.bidimap
Class AbstractTestSortedBidiMap

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.apache.commons.collections.BulkTest
              extended byorg.apache.commons.collections.AbstractTestObject
                  extended byorg.apache.commons.collections.map.AbstractTestMap
                      extended byorg.apache.commons.collections.bidimap.AbstractTestBidiMap
                          extended byorg.apache.commons.collections.bidimap.AbstractTestOrderedBidiMap
                              extended byorg.apache.commons.collections.bidimap.AbstractTestSortedBidiMap
All Implemented Interfaces:
java.lang.Cloneable, junit.framework.Test

public abstract class AbstractTestSortedBidiMap
extends AbstractTestOrderedBidiMap

Abstract test class for SortedBidiMap methods and contracts.


Nested Class Summary
 
Nested classes inherited from class org.apache.commons.collections.bidimap.AbstractTestOrderedBidiMap
AbstractTestOrderedBidiMap.TestBidiOrderedMapIterator
 
Nested classes inherited from class org.apache.commons.collections.bidimap.AbstractTestBidiMap
AbstractTestBidiMap.TestBidiMapEntrySet, AbstractTestBidiMap.TestBidiMapIterator, AbstractTestBidiMap.TestInverseBidiMap
 
Nested classes inherited from class org.apache.commons.collections.map.AbstractTestMap
AbstractTestMap.TestMapEntrySet, AbstractTestMap.TestMapKeySet, AbstractTestMap.TestMapValues
 
Field Summary
protected  java.util.List sortedKeys
           
protected  java.util.SortedSet sortedNewValues
           
protected  java.util.List sortedValues
           
 
Fields 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
AbstractTestSortedBidiMap()
           
AbstractTestSortedBidiMap(java.lang.String testName)
           
 
Method Summary
 BulkTest bulkTestHeadMap()
           
 BulkTest bulkTestSubMap()
           
 BulkTest bulkTestTailMap()
           
 boolean isAllowNullKey()
          Returns true if the maps produced by AbstractTestBidiMap.makeEmptyMap() and AbstractTestMap.makeFullMap() supports null keys.
 boolean isAllowNullValue()
          Returns true if the maps produced by AbstractTestBidiMap.makeEmptyMap() and AbstractTestMap.makeFullMap() supports null values.
 java.util.Map makeConfirmedMap()
          Override to return a map other than HashMap as the confirmed map.
 void testBidiClearByHeadMap()
           
 void testBidiClearBySubMap()
           
 void testBidiClearByTailMap()
           
 void testBidiHeadMapContains()
           
 void testBidiRemoveByHeadMap()
           
 void testBidiRemoveByHeadMapEntrySet()
           
 void testBidiRemoveBySubMap()
           
 void testBidiRemoveBySubMapEntrySet()
           
 void testBidiRemoveByTailMap()
           
 void testBidiRemoveByTailMapEntrySet()
           
 void testBidiSubMapContains()
           
 void testBidiTailMapContains()
           
 
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
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp
 
Methods inherited from class junit.framework.Assert
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, fail, fail, failNotEquals, failNotSame, failSame
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

sortedKeys

protected java.util.List sortedKeys

sortedValues

protected java.util.List sortedValues

sortedNewValues

protected java.util.SortedSet sortedNewValues
Constructor Detail

AbstractTestSortedBidiMap

public AbstractTestSortedBidiMap(java.lang.String testName)

AbstractTestSortedBidiMap

public AbstractTestSortedBidiMap()
Method Detail

isAllowNullKey

public boolean isAllowNullKey()
Description copied from class: AbstractTestMap
Returns true if the maps produced by AbstractTestMap.makeEmptyMap() and AbstractTestMap.makeFullMap() supports null keys.

Default implementation returns true. Override if your collection class does not support null keys.

Overrides:
isAllowNullKey in class AbstractTestMap

isAllowNullValue

public boolean isAllowNullValue()
Description copied from class: AbstractTestMap
Returns true if the maps produced by AbstractTestMap.makeEmptyMap() and AbstractTestMap.makeFullMap() supports null values.

Default implementation returns true. Override if your collection class does not support null values.

Overrides:
isAllowNullValue in class AbstractTestMap

makeConfirmedMap

public java.util.Map makeConfirmedMap()
Description copied from class: AbstractTestMap
Override to return a map other than HashMap as the confirmed map.

Overrides:
makeConfirmedMap in class AbstractTestMap
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

public BulkTest bulkTestHeadMap()

bulkTestTailMap

public BulkTest bulkTestTailMap()

bulkTestSubMap

public BulkTest bulkTestSubMap()


Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.