Interface MapTests.PutAllTests<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>
@TestInstance(PER_CLASS) @DisplayName("putAll(Map)") public static interface MapTests.PutAllTests<K,V> extends MapTests<K,V>
Contains tests forMap.putAll(Map).By default, the tests in this interface assume that calling
Map.putAll(Map)with a map containingnullkeys or values will simply add the entry with thenullkey or value. If this is not the case, annotate your class withStoreNullKeyNotSupportedand/orStoreNullNotSupported.- 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 UnaryOperator<V>replaceValueOperator()Returns a unary operator that can be used to create new values to set withMap.putAll(Map).default voidtestPutAll()default voidtestPutAllWithMapWithNullKey(TestInfo testInfo)default voidtestPutAllWithMapWithNullValue(TestInfo testInfo)default voidtestPutAllWithNullMap()-
Methods inherited from interface com.github.robtimus.junit.support.test.collections.MapTests
expectedEntries, map, nonContainedEntries
-
-
-
-
Method Detail
-
replaceValueOperator
UnaryOperator<V> replaceValueOperator()
Returns a unary operator that can be used to create new values to set withMap.putAll(Map).- Returns:
- A unary operator that can be used to create new values to set with
Map.putAll(Map).
-
testPutAll
@Test @DisplayName("putAll(Map)") default void testPutAll()
-
testPutAllWithNullMap
@Test @DisplayName("putAll(Map) with a null map") default void testPutAllWithNullMap()
-
testPutAllWithMapWithNullKey
@Test @DisplayName("putAll(Map) with a map with a null key") default void testPutAllWithMapWithNullKey(TestInfo testInfo)
-
testPutAllWithMapWithNullValue
@Test @DisplayName("putAll(Map) with a map with a null value") default void testPutAllWithMapWithNullValue(TestInfo testInfo)
-
-