@GwtCompatible public abstract class SortedMapInterfaceTest<K,V> extends MapInterfaceTest<K,V>
SortedMap. Concrete subclasses of
this base class test conformance of concrete SortedMap subclasses to
that contract.allowsNullKeys, allowsNullValues, supportsClear, supportsIteratorRemove, supportsPut, supportsRemove| Modifier | Constructor and Description |
|---|---|
protected |
SortedMapInterfaceTest(boolean allowsNullKeys,
boolean allowsNullValues,
boolean supportsPut,
boolean supportsRemove,
boolean supportsClear) |
| Modifier and Type | Method and Description |
|---|---|
protected SortedMap<K,V> |
makeEitherMap()
Used by tests that require a map, but don't care whether it's
populated or not.
|
protected abstract SortedMap<K,V> |
makeEmptyMap()
Creates a new, empty instance of the class under test.
|
protected abstract SortedMap<K,V> |
makePopulatedMap()
Creates a new, non-empty instance of the class under test.
|
void |
testTailMapClearThrough() |
void |
testTailMapRemoveThrough() |
void |
testTailMapWriteThrough() |
assertInvariants, assertMoreInvariants, getKeyNotInPopulatedMap, getValueNotInPopulatedMap, supportsValuesHashCode, testClear, testContainsKey, testContainsValue, testEntrySet, testEntrySetAddAndAddAll, testEntrySetClear, testEntrySetContainsEntryIncompatibleKey, testEntrySetContainsEntryNullKeyMissing, testEntrySetContainsEntryNullKeyPresent, testEntrySetForEmptyMap, testEntrySetIteratorRemove, testEntrySetRemove, testEntrySetRemoveAll, testEntrySetRemoveAllNullFromEmpty, testEntrySetRemoveDifferentValue, testEntrySetRemoveMissingKey, testEntrySetRemoveNullKeyMissing, testEntrySetRemoveNullKeyPresent, testEntrySetRetainAll, testEntrySetRetainAllNullFromEmpty, testEntrySetSetValue, testEntrySetSetValueSameValue, testEqualsForEmptyMap, testEqualsForEqualMap, testEqualsForLargerMap, testEqualsForSmallerMap, testGet, testGetForEmptyMap, testGetNull, testHashCode, testHashCodeForEmptyMap, testKeySetClear, testKeySetRemove, testKeySetRemoveAll, testKeySetRemoveAllNullFromEmpty, testKeySetRetainAll, testKeySetRetainAllNullFromEmpty, testPutAllExistingKey, testPutAllNewKey, testPutExistingKey, testPutNewKey, testPutNullKey, testPutNullValue, testPutNullValueForExistingKey, testRemove, testRemoveMissingKey, testSize, testValues, testValuesClear, testValuesIteratorRemove, testValuesRemove, testValuesRemoveAll, testValuesRemoveAllNullFromEmpty, testValuesRemoveMissing, testValuesRetainAll, testValuesRetainAllNullFromEmptycountTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toStringassertEquals, 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, formatprotected SortedMapInterfaceTest(boolean allowsNullKeys,
boolean allowsNullValues,
boolean supportsPut,
boolean supportsRemove,
boolean supportsClear)
protected abstract SortedMap<K,V> makeEmptyMap() throws UnsupportedOperationException
MapInterfaceTestmakeEmptyMap in class MapInterfaceTest<K,V>UnsupportedOperationException - if it's not possible to make an
empty instance of the class under test.protected abstract SortedMap<K,V> makePopulatedMap() throws UnsupportedOperationException
MapInterfaceTestmakePopulatedMap in class MapInterfaceTest<K,V>UnsupportedOperationException - if it's not possible to make a
non-empty instance of the class under test.protected SortedMap<K,V> makeEitherMap()
MapInterfaceTestmakeEitherMap in class MapInterfaceTest<K,V>public void testTailMapWriteThrough()
public void testTailMapRemoveThrough()
public void testTailMapClearThrough()
Copyright © 2010–2017. All rights reserved.