org.apache.commons.collections.map
Class AbstractTestSortedMap

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.map.AbstractTestSortedMap
All Implemented Interfaces:
java.lang.Cloneable, junit.framework.Test
Direct Known Subclasses:
AbstractTestSortedMap.TestViewMap

public abstract class AbstractTestSortedMap
extends AbstractTestMap

Abstract test class for SortedMap methods and contracts.


Nested Class Summary
static class AbstractTestSortedMap.TestHeadMap
           
static class AbstractTestSortedMap.TestSubMap
           
static class AbstractTestSortedMap.TestTailMap
           
static class AbstractTestSortedMap.TestViewMap
           
 
Nested classes 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.map.AbstractTestMap
confirmed, entrySet, keySet, map, values
 
Fields inherited from class org.apache.commons.collections.AbstractTestObject
COLLECTIONS_MAJOR_VERSION
 
Constructor Summary
AbstractTestSortedMap(java.lang.String testName)
          JUnit constructor.
 
Method Summary
 BulkTest bulkTestHeadMap()
           
 BulkTest bulkTestSubMap()
           
 BulkTest bulkTestTailMap()
           
 boolean isAllowNullKey()
          Can't sort null keys.
 java.util.Map makeConfirmedMap()
          SortedMap uses TreeMap as its known comparison.
 void testComparator()
           
 void testFirstKey()
           
 void testLastKey()
           
 
Methods inherited from class org.apache.commons.collections.map.AbstractTestMap
addSampleMappings, bulkTestMapEntrySet, bulkTestMapKeySet, bulkTestMapValues, cloneMapEntry, getCompatibilityVersion, getNewSampleValues, getOtherKeys, getOtherNonNullStringElements, getOtherValues, getSampleKeys, getSampleValues, isAllowDuplicateValues, isAllowNullValue, isGetStructuralModify, isPutAddSupported, isPutChangeSupported, isRemoveSupported, isSetValueSupported, isSubMapViewsSerializable, makeEmptyMap, 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, verify, 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
 

Constructor Detail

AbstractTestSortedMap

public AbstractTestSortedMap(java.lang.String testName)
JUnit constructor.

Parameters:
testName - the test name
Method Detail

isAllowNullKey

public boolean isAllowNullKey()
Can't sort null keys.

Overrides:
isAllowNullKey in class AbstractTestMap
Returns:
false

makeConfirmedMap

public java.util.Map makeConfirmedMap()
SortedMap uses TreeMap as its known comparison.

Overrides:
makeConfirmedMap in class AbstractTestMap
Returns:
a map that is known to be valid

testComparator

public void testComparator()

testFirstKey

public void testFirstKey()

testLastKey

public void testLastKey()

bulkTestHeadMap

public BulkTest bulkTestHeadMap()

bulkTestTailMap

public BulkTest bulkTestTailMap()

bulkTestSubMap

public BulkTest bulkTestSubMap()


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