Interface UnmodifiableMapTests.PutTests<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>
    Enclosing interface:
    UnmodifiableMapTests<K,​V>

    @DisplayName("get(Object)")
    public static interface UnmodifiableMapTests.PutTests<K,​V>
    extends MapTests<K,​V>
    Contains tests for Map.put(Object, Object) for unmodifiable maps.
    Author:
    Rob Spoor
    • Method Detail

      • testPutWithContainedEntries

        @Test
        @DisplayName("put(Object, Object) with contained entries")
        default void testPutWithContainedEntries()
      • testPutWithUpdatedEntries

        @Test
        @DisplayName("put(Object, Object) with updated entries")
        default void testPutWithUpdatedEntries()
      • testPutWithNullKey

        @Test
        @DisplayName("put(Object, Object) with null key")
        default void testPutWithNullKey()
      • testPutWithNullValue

        @Test
        @DisplayName("put(Object, Object) with null value")
        default void testPutWithNullValue()