Class MapComputeIfPresentTester<K,V>

java.lang.Object
junit.framework.Assert
All Implemented Interfaces:
junit.framework.Test

@GwtCompatible public class MapComputeIfPresentTester<K,V> extends AbstractMapTester<K,V>
A generic JUnit test which tests Map.computeIfPresent(K, java.util.function.BiFunction<? super K, ? super V, ? extends V>). Can't be invoked directly; please see MapTestSuiteBuilder.
Author:
Louis Wasserman
  • Constructor Details

    • MapComputeIfPresentTester

      public MapComputeIfPresentTester()
  • Method Details

    • testComputeIfPresent_supportedAbsent

      public void testComputeIfPresent_supportedAbsent()
    • testComputeIfPresent_supportedPresent

      public void testComputeIfPresent_supportedPresent()
    • testComputeIfPresent_functionReturnsNull

      public void testComputeIfPresent_functionReturnsNull()
    • testComputeIfPresent_nullTreatedAsAbsent

      public void testComputeIfPresent_nullTreatedAsAbsent()
    • testComputeIfPresent_functionThrows

      public void testComputeIfPresent_functionThrows()
    • testComputeIfPresent_nullKeySupportedPresent

      public void testComputeIfPresent_nullKeySupportedPresent()
    • testComputeIfPresent_nullKeySupportedAbsent

      public void testComputeIfPresent_nullKeySupportedAbsent()
    • testComputeIfPresent_unsupportedAbsent

      public void testComputeIfPresent_unsupportedAbsent()
    • testComputeIfPresent_unsupportedPresent

      public void testComputeIfPresent_unsupportedPresent()