Class MapCreationTester<K,V>

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

@GwtCompatible(emulated=true) public class MapCreationTester<K,V> extends AbstractMapTester<K,V>
A generic JUnit test which tests creation (typically through a constructor or static factory method) of a map. Can't be invoked directly; please see MapTestSuiteBuilder.
Author:
Chris Povirk, Kevin Bourrillion
  • Constructor Details

    • MapCreationTester

      public MapCreationTester()
  • Method Details

    • testCreateWithNullKeySupported

      public void testCreateWithNullKeySupported()
    • testCreateWithNullKeyUnsupported

      public void testCreateWithNullKeyUnsupported()
    • testCreateWithNullValueSupported

      public void testCreateWithNullValueSupported()
    • testCreateWithNullValueUnsupported

      public void testCreateWithNullValueUnsupported()
    • testCreateWithNullKeyAndValueSupported

      public void testCreateWithNullKeyAndValueSupported()
    • testCreateWithDuplicates_nullDuplicatesNotRejected

      public void testCreateWithDuplicates_nullDuplicatesNotRejected()
    • testCreateWithDuplicates_nonNullDuplicatesNotRejected

      public void testCreateWithDuplicates_nonNullDuplicatesNotRejected()
    • testCreateWithDuplicates_nullDuplicatesRejected

      public void testCreateWithDuplicates_nullDuplicatesRejected()
    • testCreateWithDuplicates_nonNullDuplicatesRejected

      public void testCreateWithDuplicates_nonNullDuplicatesRejected()
    • getCreateWithNullKeyUnsupportedMethod

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