Class ConcurrentMapPutIfAbsentTester<K,V>

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

@GwtCompatible @NullMarked public class ConcurrentMapPutIfAbsentTester<K,V> extends AbstractMapTester<K,V>
A generic JUnit test which tests putIfAbsent operations on a concurrent map. Can't be invoked directly; please see ConcurrentMapTestSuiteBuilder.
Author:
Louis Wasserman
  • Constructor Details

    • ConcurrentMapPutIfAbsentTester

      public ConcurrentMapPutIfAbsentTester()
  • Method Details

    • getMap

      protected ConcurrentMap<K,V> getMap()
      Overrides:
      getMap in class AbstractMapTester<K,V>
    • testPutIfAbsent_supportedAbsent

      public void testPutIfAbsent_supportedAbsent()
    • testPutIfAbsent_supportedPresent

      public void testPutIfAbsent_supportedPresent()
    • testPutIfAbsent_unsupportedAbsent

      public void testPutIfAbsent_unsupportedAbsent()
    • testPutIfAbsent_unsupportedPresentExistingValue

      public void testPutIfAbsent_unsupportedPresentExistingValue()
    • testPutIfAbsent_unsupportedPresentDifferentValue

      public void testPutIfAbsent_unsupportedPresentDifferentValue()
    • testPutIfAbsent_nullKeyUnsupported

      public void testPutIfAbsent_nullKeyUnsupported()
    • testPutIfAbsent_nullValueUnsupported

      public void testPutIfAbsent_nullValueUnsupported()
    • testPutIfAbsent_putWithNullValueUnsupported

      public void testPutIfAbsent_putWithNullValueUnsupported()