Class SortedMapInterfaceTest<K,V>
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
com.google.common.collect.testing.MapInterfaceTest<K,V>
com.google.common.collect.testing.SortedMapInterfaceTest<K,V>
- All Implemented Interfaces:
junit.framework.Test
-
Field Summary
Fields inherited from class MapInterfaceTest
allowsNullKeys, allowsNullValues, supportsClear, supportsIteratorRemove, supportsPut, supportsRemoveModifier and TypeFieldDescriptionprotected final booleanprotected final booleanprotected final booleanprotected final booleanprotected final booleanprotected final boolean -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSortedMapInterfaceTest(boolean allowsNullKeys, boolean allowsNullValues, boolean supportsPut, boolean supportsRemove, boolean supportsClear) -
Method Summary
Modifier and TypeMethodDescriptionUsed by tests that require a map, but don't care whether it's populated or not.Creates a new, empty instance of the class under test.Creates a new, non-empty instance of the class under test.voidvoidvoidMethods inherited from class MapInterfaceTest
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, testValuesRetainAllNullFromEmptyModifier and TypeMethodDescriptionprotected final voidassertInvariants(Map<K, V> map) Checks all the properties that should always hold of a map.protected voidassertMoreInvariants(Map<K, V> map) Override this to check invariants which should hold true for a particular implementation, but which are not generally applicable to every instance of Map.protected abstract KCreates a new key that is not expected to be found inMapInterfaceTest.makePopulatedMap().protected abstract VCreates a new value that is not expected to be found inMapInterfaceTest.makePopulatedMap().protected final booleansupportsValuesHashCode(Map<K, V> map) voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidtestGet()voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidtestSize()voidvoidvoidvoidvoidvoidvoidvoidvoidMethods inherited from class junit.framework.TestCase
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
-
Constructor Details
-
SortedMapInterfaceTest
protected SortedMapInterfaceTest(boolean allowsNullKeys, boolean allowsNullValues, boolean supportsPut, boolean supportsRemove, boolean supportsClear)
-
-
Method Details
-
makeEmptyMap
Description copied from class:MapInterfaceTestCreates a new, empty instance of the class under test.- Specified by:
makeEmptyMapin classMapInterfaceTest<K,V> - Returns:
- a new, empty map instance.
-
makePopulatedMap
Description copied from class:MapInterfaceTestCreates a new, non-empty instance of the class under test.- Specified by:
makePopulatedMapin classMapInterfaceTest<K,V> - Returns:
- a new, non-empty map instance.
-
makeEitherMap
Description copied from class:MapInterfaceTestUsed by tests that require a map, but don't care whether it's populated or not.- Overrides:
makeEitherMapin classMapInterfaceTest<K,V> - Returns:
- a new map instance.
-
testTailMapWriteThrough
public void testTailMapWriteThrough() -
testTailMapRemoveThrough
public void testTailMapRemoveThrough() -
testTailMapClearThrough
public void testTailMapClearThrough()
-