@GwtCompatible public abstract class ConcurrentMapInterfaceTest<K,V> extends MapInterfaceTest<K,V>
ConcurrentMap
. Concrete
subclasses of this base class test conformance of concrete
ConcurrentMap
subclasses to that contract.
This class is GWT compatible.
The tests in this class for null keys and values only check maps for
which null keys and values are not allowed. There are currently no
ConcurrentMap
implementations that support nulls.
allowsNullKeys, allowsNullValues, supportsClear, supportsIteratorRemove, supportsPut, supportsRemove
Modifier | Constructor and Description |
---|---|
protected |
ConcurrentMapInterfaceTest(boolean allowsNullKeys,
boolean allowsNullValues,
boolean supportsPut,
boolean supportsRemove,
boolean supportsClear) |
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, testValuesRetainAllNullFromEmpty
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
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, format
protected ConcurrentMapInterfaceTest(boolean allowsNullKeys, boolean allowsNullValues, boolean supportsPut, boolean supportsRemove, boolean supportsClear)
protected abstract V getSecondValueNotInPopulatedMap() throws UnsupportedOperationException
makePopulatedMap()
and differs from the value returned by
MapInterfaceTest.getValueNotInPopulatedMap()
.UnsupportedOperationException
- if it's not possible to make a value
that will not be found in the mapprotected abstract ConcurrentMap<K,V> makeEmptyMap() throws UnsupportedOperationException
MapInterfaceTest
makeEmptyMap
in class MapInterfaceTest<K,V>
UnsupportedOperationException
- if it's not possible to make an
empty instance of the class under test.protected abstract ConcurrentMap<K,V> makePopulatedMap() throws UnsupportedOperationException
MapInterfaceTest
makePopulatedMap
in class MapInterfaceTest<K,V>
UnsupportedOperationException
- if it's not possible to make a
non-empty instance of the class under test.protected ConcurrentMap<K,V> makeEitherMap()
MapInterfaceTest
makeEitherMap
in class MapInterfaceTest<K,V>
public void testPutIfAbsentNewKey()
public void testPutIfAbsentExistingKey()
public void testPutIfAbsentNullKey()
public void testPutIfAbsentNewKeyNullValue()
public void testPutIfAbsentExistingKeyNullValue()
public void testRemoveKeyValueExisting()
public void testRemoveKeyValueMissingKey()
public void testRemoveKeyValueDifferentValue()
public void testRemoveKeyValueNullKey()
public void testRemoveKeyValueExistingKeyNullValue()
public void testRemoveKeyValueMissingKeyNullValue()
public void testReplace2ExistingKey()
public void testReplace2MissingKey()
public void testReplace2NullKey()
public void testReplace2ExistingKeyNullValue()
public void testReplace2MissingKeyNullValue()
public void testReplace3ExistingKeyValue()
public void testReplace3ExistingKeyDifferentValue()
public void testReplace3MissingKey()
public void testReplace3NullKey()
public void testReplace3ExistingKeyNullOldValue()
public void testReplace3MissingKeyNullOldValue()
public void testReplace3MissingKeyNullNewValue()
public void testReplace3ExistingKeyValueNullNewValue()
Copyright © 2010-2013. All Rights Reserved.