Class MapPutTester<K,V>

All Implemented Interfaces:
junit.framework.Test

@GwtCompatible(emulated=true) public class MapPutTester<K,V> extends AbstractMapTester<K,V>
A generic JUnit test which tests put operations on a map. Can't be invoked directly; please see MapTestSuiteBuilder.
Author:
Chris Povirk, Kevin Bourrillion
  • Constructor Details

    • MapPutTester

      public MapPutTester()
  • Method Details

    • setUp

      public void setUp() throws Exception
      Overrides:
      setUp in class AbstractContainerTester<Map<K,V>, Map.Entry<K,V>>
      Throws:
      Exception
    • testPut_supportedPresent

      public void testPut_supportedPresent()
    • testPut_supportedNotPresent

      public void testPut_supportedNotPresent()
    • testPutAbsentConcurrentWithEntrySetIteration

      public void testPutAbsentConcurrentWithEntrySetIteration()
    • testPutAbsentConcurrentWithKeySetIteration

      public void testPutAbsentConcurrentWithKeySetIteration()
    • testPutAbsentConcurrentWithValueIteration

      public void testPutAbsentConcurrentWithValueIteration()
    • testPut_unsupportedNotPresent

      public void testPut_unsupportedNotPresent()
    • testPut_unsupportedPresentExistingValue

      public void testPut_unsupportedPresentExistingValue()
    • testPut_unsupportedPresentDifferentValue

      public void testPut_unsupportedPresentDifferentValue()
    • testPut_nullKeySupportedNotPresent

      public void testPut_nullKeySupportedNotPresent()
    • testPut_nullKeySupportedPresent

      public void testPut_nullKeySupportedPresent()
    • testPut_nullKeyUnsupported

      public void testPut_nullKeyUnsupported()
    • testPut_nullValueSupported

      public void testPut_nullValueSupported()
    • testPut_nullValueUnsupported

      public void testPut_nullValueUnsupported()
    • testPut_replaceWithNullValueSupported

      public void testPut_replaceWithNullValueSupported()
    • testPut_replaceWithNullValueUnsupported

      public void testPut_replaceWithNullValueUnsupported()
    • testPut_replaceNullValueWithNullSupported

      public void testPut_replaceNullValueWithNullSupported()
    • testPut_replaceNullValueWithNonNullSupported

      public void testPut_replaceNullValueWithNonNullSupported()
    • testPut_nullKeyAndValueSupported

      public void testPut_nullKeyAndValueSupported()
    • getPutNullKeyUnsupportedMethod

      @GwtIncompatible public static Method getPutNullKeyUnsupportedMethod()
      Returns the Method instance for testPut_nullKeyUnsupported() so that tests of TreeMap can suppress it with FeatureSpecificTestSuiteBuilder.suppressing() until JDK-5045147 is fixed.