public abstract static class AbstractTestSortedMap.TestViewMap extends AbstractTestSortedMap
AbstractTestSortedMap.TestHeadMap, AbstractTestSortedMap.TestSubMap, AbstractTestSortedMap.TestTailMap, AbstractTestSortedMap.TestViewMapAbstractTestMap.TestMapEntrySet, AbstractTestMap.TestMapKeySet, AbstractTestMap.TestMapValues| Modifier and Type | Field and Description |
|---|---|
protected AbstractTestMap |
main |
protected java.util.List |
subSortedKeys |
protected java.util.List |
subSortedNewValues |
protected java.util.List |
subSortedValues |
confirmed, entrySet, keySet, map, valuesCOLLECTIONS_MAJOR_VERSION| Constructor and Description |
|---|
AbstractTestSortedMap.TestViewMap(java.lang.String name,
AbstractTestMap main) |
| Modifier and Type | Method and Description |
|---|---|
BulkTest |
bulkTestHeadMap() |
BulkTest |
bulkTestSubMap() |
BulkTest |
bulkTestTailMap() |
java.lang.Object[] |
getNewSampleValues()
Returns a the set of values that can be used to replace the values
returned from
AbstractTestMap.getSampleValues(). |
java.lang.Object[] |
getSampleKeys()
Returns the set of keys in the mappings used to test the map.
|
java.lang.Object[] |
getSampleValues()
Returns the set of values in the mappings used to test the map.
|
boolean |
isAllowNullKey()
Can't sort null keys.
|
boolean |
isAllowNullValue()
Returns true if the maps produced by
AbstractTestMap.makeEmptyMap() and AbstractTestMap.makeFullMap()
supports null values. |
boolean |
isPutAddSupported()
Returns true if the maps produced by
AbstractTestMap.makeEmptyMap() and AbstractTestMap.makeFullMap()
support the put and putAll operations
adding new mappings. |
boolean |
isPutChangeSupported()
Returns true if the maps produced by
AbstractTestMap.makeEmptyMap() and AbstractTestMap.makeFullMap()
support the put and putAll operations
changing existing mappings. |
boolean |
isRemoveSupported()
Returns true if the maps produced by
AbstractTestMap.makeEmptyMap() and AbstractTestMap.makeFullMap()
support the remove and clear operations. |
boolean |
isTestSerialization()
Is serialization testing supported.
|
void |
resetEmpty()
Resets the
AbstractTestMap.map, AbstractTestMap.entrySet, AbstractTestMap.keySet,
AbstractTestMap.values and AbstractTestMap.confirmed fields to empty. |
void |
resetFull()
Resets the
AbstractTestMap.map, AbstractTestMap.entrySet, AbstractTestMap.keySet,
AbstractTestMap.values and AbstractTestMap.confirmed fields to full. |
void |
verify()
Verifies that
AbstractTestMap.map is still equal to AbstractTestMap.confirmed. |
makeConfirmedMap, testComparator, testFirstKey, testLastKeyaddSampleMappings, bulkTestMapEntrySet, bulkTestMapKeySet, bulkTestMapValues, cloneMapEntry, getCompatibilityVersion, getOtherKeys, getOtherNonNullStringElements, getOtherValues, isAllowDuplicateValues, isGetStructuralModify, isSetValueSupported, isSubMapViewsSerializable, makeEmptyMap, makeFullMap, 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, verifyValuesgetCanonicalEmptyCollectionName, getCanonicalFullCollectionName, isEqualsCheckable, readExternalFormFromBytes, readExternalFormFromDisk, skipSerializedCanonicalTests, supportsEmptyCollections, supportsFullCollections, testCanonicalEmptyCollectionExists, testCanonicalFullCollectionExists, testEqualsNull, testObjectEqualsSelf, testObjectHashCodeEqualsContract, testObjectHashCodeEqualsSelfHashCode, testSerializeDeserializeThenCompare, testSimpleSerialization, writeExternalFormToBytes, writeExternalFormToDiskclone, ignoredTests, makeSuite, toStringprotected final AbstractTestMap main
protected final java.util.List subSortedKeys
protected final java.util.List subSortedValues
protected final java.util.List subSortedNewValues
public AbstractTestSortedMap.TestViewMap(java.lang.String name,
AbstractTestMap main)
public void resetEmpty()
AbstractTestMapAbstractTestMap.map, AbstractTestMap.entrySet, AbstractTestMap.keySet,
AbstractTestMap.values and AbstractTestMap.confirmed fields to empty.resetEmpty in class AbstractTestMappublic void resetFull()
AbstractTestMapAbstractTestMap.map, AbstractTestMap.entrySet, AbstractTestMap.keySet,
AbstractTestMap.values and AbstractTestMap.confirmed fields to full.resetFull in class AbstractTestMappublic void verify()
AbstractTestMapAbstractTestMap.map is still equal to AbstractTestMap.confirmed.
This method checks that the map is equal to the HashMap,
and that the map's collection views are still equal to
the HashMap's collection views. An equals test
is done on the maps and their collection views; their size and
isEmpty results are compared; their hashCodes are
compared; and containsAll tests are run on the
collection views.verify in class AbstractTestMappublic BulkTest bulkTestHeadMap()
bulkTestHeadMap in class AbstractTestSortedMappublic BulkTest bulkTestTailMap()
bulkTestTailMap in class AbstractTestSortedMappublic BulkTest bulkTestSubMap()
bulkTestSubMap in class AbstractTestSortedMappublic java.lang.Object[] getSampleKeys()
AbstractTestMapAbstractTestMap.getSampleValues() and all array elements must be different. The
default implementation constructs a set of String keys, and includes a
single null key if AbstractTestMap.isAllowNullKey() returns true.getSampleKeys in class AbstractTestMappublic java.lang.Object[] getSampleValues()
AbstractTestMapAbstractTestMap.getSampleKeys(). The default implementation constructs a set of
String values and includes a single null value if
AbstractTestMap.isAllowNullValue() returns true, and includes
two values that are the same if AbstractTestMap.isAllowDuplicateValues() returns
true.getSampleValues in class AbstractTestMappublic java.lang.Object[] getNewSampleValues()
AbstractTestMapAbstractTestMap.getSampleValues(). This method must return an
array with the same length as AbstractTestMap.getSampleValues(). The values
returned from this method should not be the same as those returned from
AbstractTestMap.getSampleValues(). The default implementation constructs a
set of String values and includes a single null value if
AbstractTestMap.isAllowNullValue() returns true, and includes two values
that are the same if AbstractTestMap.isAllowDuplicateValues() returns
true.getNewSampleValues in class AbstractTestMappublic boolean isAllowNullKey()
AbstractTestSortedMapisAllowNullKey in class AbstractTestSortedMappublic boolean isAllowNullValue()
AbstractTestMapAbstractTestMap.makeEmptyMap() and AbstractTestMap.makeFullMap()
supports null values.
Default implementation returns true. Override if your collection class does not support null values.
isAllowNullValue in class AbstractTestMappublic boolean isPutAddSupported()
AbstractTestMapAbstractTestMap.makeEmptyMap() and AbstractTestMap.makeFullMap()
support the put and putAll operations
adding new mappings.
Default implementation returns true. Override if your collection class does not support put adding.
isPutAddSupported in class AbstractTestMappublic boolean isPutChangeSupported()
AbstractTestMapAbstractTestMap.makeEmptyMap() and AbstractTestMap.makeFullMap()
support the put and putAll operations
changing existing mappings.
Default implementation returns true. Override if your collection class does not support put changing.
isPutChangeSupported in class AbstractTestMappublic boolean isRemoveSupported()
AbstractTestMapAbstractTestMap.makeEmptyMap() and AbstractTestMap.makeFullMap()
support the remove and clear operations.
Default implementation returns true. Override if your collection class does not support removal operations.
isRemoveSupported in class AbstractTestMappublic boolean isTestSerialization()
AbstractTestObjectisTestSerialization in class AbstractTestObjectCopyright © 2001-2015 Apache Software Foundation. All Rights Reserved.