org.apache.commons.collections.map
Class AbstractTestSortedMap.TestSubMap

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.commons.collections.BulkTest
              extended by org.apache.commons.collections.AbstractTestObject
                  extended by org.apache.commons.collections.map.AbstractTestMap
                      extended by org.apache.commons.collections.map.AbstractTestSortedMap
                          extended by org.apache.commons.collections.map.AbstractTestSortedMap.TestViewMap
                              extended by org.apache.commons.collections.map.AbstractTestSortedMap.TestSubMap
All Implemented Interfaces:
java.lang.Cloneable, junit.framework.Test
Enclosing class:
AbstractTestSortedMap

public static class AbstractTestSortedMap.TestSubMap
extends AbstractTestSortedMap.TestViewMap


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.commons.collections.map.AbstractTestSortedMap
AbstractTestSortedMap.TestHeadMap, AbstractTestSortedMap.TestSubMap, AbstractTestSortedMap.TestTailMap, AbstractTestSortedMap.TestViewMap
 
Nested 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.map.AbstractTestSortedMap.TestViewMap
main, subSortedKeys, subSortedNewValues, subSortedValues
 
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.TestSubMap(AbstractTestMap main)
           
 
Method Summary
 java.lang.String getCompatibilityVersion()
          Gets the compatability version, needed for package access.
 java.util.Map makeEmptyMap()
          Return a new, empty Map to be used for testing.
 java.util.Map makeFullMap()
          Return a new, populated map.
 void testSubMapOutOfRange()
           
 
Methods inherited from class org.apache.commons.collections.map.AbstractTestSortedMap.TestViewMap
bulkTestHeadMap, bulkTestSubMap, bulkTestTailMap, getNewSampleValues, getSampleKeys, getSampleValues, isAllowNullKey, isAllowNullValue, isPutAddSupported, isPutChangeSupported, isRemoveSupported, isTestSerialization, resetEmpty, resetFull, verify
 
Methods inherited from class org.apache.commons.collections.map.AbstractTestSortedMap
makeConfirmedMap, testComparator, testFirstKey, testLastKey
 
Methods inherited from class org.apache.commons.collections.map.AbstractTestMap
addSampleMappings, bulkTestMapEntrySet, bulkTestMapKeySet, bulkTestMapValues, cloneMapEntry, getOtherKeys, getOtherNonNullStringElements, getOtherValues, isAllowDuplicateValues, isGetStructuralModify, isSetValueSupported, isSubMapViewsSerializable, makeObject, 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, 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.TestSubMap

public AbstractTestSortedMap.TestSubMap(AbstractTestMap main)
Method Detail

makeEmptyMap

public java.util.Map makeEmptyMap()
Description copied from class: AbstractTestMap
Return a new, empty Map to be used for testing.

Specified by:
makeEmptyMap in class AbstractTestMap
Returns:
the map to be tested

makeFullMap

public java.util.Map makeFullMap()
Description copied from class: AbstractTestMap
Return a new, populated map. The mappings in the map should match the keys and values returned from AbstractTestMap.getSampleKeys() and AbstractTestMap.getSampleValues(). The default implementation uses makeEmptyMap() and calls AbstractTestMap.addSampleMappings(java.util.Map) to add all the mappings to the map.

Overrides:
makeFullMap in class AbstractTestMap
Returns:
the map to be tested

testSubMapOutOfRange

public void testSubMapOutOfRange()

getCompatibilityVersion

public java.lang.String getCompatibilityVersion()
Description copied from class: AbstractTestMap
Gets the compatability version, needed for package access.

Overrides:
getCompatibilityVersion in class AbstractTestMap
Returns:
The version, or null if this object shouldn't be tested for compatibility with previous versions.


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