Interface MapTests.MergeTests<K,V>
-
- Type Parameters:
K
- The key type of the map to test.V
- The value type of the map to test.
- All Superinterfaces:
MapTests<K,V>
@DisplayName("merge(Object, Object, BiFunction)") public static interface MapTests.MergeTests<K,V> extends MapTests<K,V>
Contains tests forMap.merge(Object, Object, BiFunction)
.- Author:
- Rob Spoor
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.github.robtimus.junit.support.test.collections.MapTests
MapTests.ClearTests<K,V>, MapTests.ComputeIfAbsentTests<K,V>, MapTests.ComputeIfPresentTests<K,V>, MapTests.ComputeTests<K,V>, MapTests.ContainsKeyTests<K,V>, MapTests.ContainsValueTests<K,V>, MapTests.EntrySetTests<K,V>, MapTests.EqualsArgumentsProvider, MapTests.EqualsTests<K,V>, MapTests.ForEachTests<K,V>, MapTests.GetOrDefaultTests<K,V>, MapTests.GetTests<K,V>, MapTests.HashCodeTests<K,V>, MapTests.KeySetTests<K,V>, MapTests.MergeTests<K,V>, MapTests.PutAllTests<K,V>, MapTests.PutIfAbsentTests<K,V>, MapTests.PutTests<K,V>, MapTests.RemoveArgumentsProvider, MapTests.RemoveExactValueArgumentsProvider, MapTests.RemoveExactValueTests<K,V>, MapTests.RemoveTests<K,V>, MapTests.ReplaceAllTests<K,V>, MapTests.ReplaceExactValueTests<K,V>, MapTests.ReplaceTests<K,V>, MapTests.ValuesTests<K,V>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description BinaryOperator<V>
combineValuesOperator()
Returns a binary operator that can be used to combine values withMap.merge(Object, Object, BiFunction)
.default void
testMerge()
default void
testMergeWithFunctionReturningNull()
default void
testMergeWithNullFunction()
default void
testMergeWithThrowingFunction()
-
Methods inherited from interface com.github.robtimus.junit.support.test.collections.MapTests
expectedEntries, map, nonContainedEntries
-
-
-
-
Method Detail
-
combineValuesOperator
BinaryOperator<V> combineValuesOperator()
Returns a binary operator that can be used to combine values withMap.merge(Object, Object, BiFunction)
.- Returns:
- A binary operator that can be used to combine values with
Map.merge(Object, Object, BiFunction)
.
-
testMerge
@Test @DisplayName("merge(Object, Object, BiFunction)") default void testMerge()
-
testMergeWithFunctionReturningNull
@Test @DisplayName("merge(Object, Object, BiFunction) with function returning null") default void testMergeWithFunctionReturningNull()
-
testMergeWithThrowingFunction
@Test @DisplayName("merge(Object, Object, BiFunction) with throwing function") default void testMergeWithThrowingFunction()
-
testMergeWithNullFunction
@Test @DisplayName("merge(Object, Object, BiFunction) with null function") default void testMergeWithNullFunction()
-
-