public class MapMergeTester<K,V> extends AbstractMapTester<K,V>
Map.merge(K, V, java.util.function.BiFunction<? super V, ? super V, ? extends V>)
. Can't be invoked directly; please see MapTestSuiteBuilder
.Modifier and Type | Class and Description |
---|---|
private static class |
MapMergeTester.ExpectedException |
AbstractContainerTester.ArrayWithDuplicate<E>
container, samples
Constructor and Description |
---|
MapMergeTester() |
Modifier and Type | Method and Description |
---|---|
static java.lang.reflect.Method |
getMergeNullValueMethod()
Returns the
Method instance for testMergeNullValue() so that tests of Hashtable can suppress it with FeatureSpecificTestSuiteBuilder.suppressing() . |
void |
testAbsent() |
void |
testMappedToNull() |
void |
testMergeAbsentNullKey() |
void |
testMergeFunctionThrows() |
void |
testMergeNullFunction() |
void |
testMergeNullValue() |
void |
testMergePresent() |
void |
testMergePresentToNull() |
void |
testMergeUnsupported() |
actualContents, createArrayWithNullKey, createArrayWithNullValue, createDisjointCollection, entry, expectContents, expectMissing, expectMissingKeys, expectMissingValues, expectNullKeyMissingWhenNullKeysUnsupported, expectNullValueMissingWhenNullValuesUnsupported, expectReplacement, get, getKeyForNullValue, getMap, getNumEntries, getSampleEntries, getSampleEntries, getValueForNullKey, initMapWithNullKey, initMapWithNullValue, k0, k1, k2, k3, k4, resetMap, resetMap, v0, v1, v2, v3, v4
createArrayWithDuplicateElement, createOrderedArray, createSamplesArray, e0, e1, e2, e3, e4, emptyCollection, expectAdded, expectAdded, expectAdded, expectContents, expectUnchanged, getNullLocation, getNumElements, getOrderedElements, getSampleElements, getSampleElements, resetContainer, resetContainer, setUp
getName, getSubjectGenerator, getTestMethodName, init, init, tearDown
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, run, run, runBare, runTest, setName, toString
public void testAbsent()
public void testMappedToNull()
public void testMergeAbsentNullKey()
public void testMergePresent()
public void testMergeFunctionThrows()
public void testMergePresentToNull()
public void testMergeNullValue()
public void testMergeNullFunction()
public void testMergeUnsupported()
public static java.lang.reflect.Method getMergeNullValueMethod()
Method
instance for testMergeNullValue()
so that tests of Hashtable
can suppress it with FeatureSpecificTestSuiteBuilder.suppressing()
.