Class MapPutTester<K,V>

All Implemented Interfaces:
junit.framework.Test

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.
  • Field Details

    • nullKeyEntry

      private Map.Entry<K,V> nullKeyEntry
    • nullValueEntry

      private Map.Entry<K,V> nullValueEntry
    • nullKeyValueEntry

      private Map.Entry<K,V> nullKeyValueEntry
    • presentKeyNullValueEntry

      private Map.Entry<K,V> presentKeyNullValueEntry
  • 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()
    • put

      private V put(Map.Entry<K,V> entry)
    • getPutNullKeyUnsupportedMethod

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