Class MapComputeIfAbsentTester<K,V>

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

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

    • MapComputeIfAbsentTester

      public MapComputeIfAbsentTester()
  • Method Details

    • testComputeIfAbsent_supportedAbsent

      public void testComputeIfAbsent_supportedAbsent()
    • testComputeIfAbsent_supportedPresent

      public void testComputeIfAbsent_supportedPresent()
    • testComputeIfAbsent_functionReturnsNullNotInserted

      public void testComputeIfAbsent_functionReturnsNullNotInserted()
    • testComputeIfAbsent_nullTreatedAsAbsent

      public void testComputeIfAbsent_nullTreatedAsAbsent()
    • testComputeIfAbsent_nullKeySupported

      public void testComputeIfAbsent_nullKeySupported()
    • testComputeIfAbsent_functionThrows

      public void testComputeIfAbsent_functionThrows()
    • testComputeIfAbsent_unsupportedAbsent

      public void testComputeIfAbsent_unsupportedAbsent()
    • testComputeIfAbsent_unsupportedPresentExistingValue

      public void testComputeIfAbsent_unsupportedPresentExistingValue()
    • testComputeIfAbsent_unsupportedPresentDifferentValue

      public void testComputeIfAbsent_unsupportedPresentDifferentValue()
    • testComputeIfAbsent_nullKeyUnsupported

      public void testComputeIfAbsent_nullKeyUnsupported()