Interface UnmodifiableMapTests.ComputeTests<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("compute(Object, BiFunction)")
    public static interface UnmodifiableMapTests.ComputeTests<K,​V>
    extends MapTests<K,​V>
    Contains tests for Map.compute(Object, BiFunction) for unmodifiable maps.
    Author:
    Rob Spoor
    • Method Detail

      • testCompute

        @Test
        @DisplayName("compute(Object, BiFunction)")
        default void testCompute()
      • testComputeWithFunctionReturningNull

        @Test
        @DisplayName("compute(Object, BiFunction) with function returning null")
        default void testComputeWithFunctionReturningNull()
      • testComputeWithThrowingFunction

        @Test
        @DisplayName("compute(Object, BiFunction) with throwing function")
        default void testComputeWithThrowingFunction()
      • testComputeWithNullFunction

        @Test
        @DisplayName("compute(Object, BiFunction) with null function")
        default void testComputeWithNullFunction()