Class TestsForMapsInJavaUtil

java.lang.Object
com.google.common.collect.testing.TestsForMapsInJavaUtil

public class TestsForMapsInJavaUtil extends Object
Generates a test suite covering the Map implementations in the java.util package. Can be subclassed to specify tests that should be suppressed.
  • Constructor Details

    • TestsForMapsInJavaUtil

      public TestsForMapsInJavaUtil()
  • Method Details

    • suite

      public static junit.framework.Test suite()
    • allTests

      public junit.framework.Test allTests()
    • suppressForCheckedMap

      protected Collection<Method> suppressForCheckedMap()
    • suppressForCheckedNavigableMap

      protected Collection<Method> suppressForCheckedNavigableMap()
    • suppressForCheckedSortedMap

      protected Collection<Method> suppressForCheckedSortedMap()
    • suppressForEmptyMap

      protected Collection<Method> suppressForEmptyMap()
    • suppressForEmptyNavigableMap

      private Collection<Method> suppressForEmptyNavigableMap()
    • suppressForEmptySortedMap

      private Collection<Method> suppressForEmptySortedMap()
    • suppressForSingletonMap

      protected Collection<Method> suppressForSingletonMap()
    • suppressForHashMap

      protected Collection<Method> suppressForHashMap()
    • suppressForHashtable

      protected Collection<Method> suppressForHashtable()
    • suppressForLinkedHashMap

      protected Collection<Method> suppressForLinkedHashMap()
    • suppressForSynchronizedNavigableMap

      protected Collection<Method> suppressForSynchronizedNavigableMap()
    • suppressForTreeMapNatural

      protected Collection<Method> suppressForTreeMapNatural()
    • suppressForTreeMapWithComparator

      protected Collection<Method> suppressForTreeMapWithComparator()
    • suppressForUnmodifiableMap

      protected Collection<Method> suppressForUnmodifiableMap()
    • suppressForUnmodifiableNavigableMap

      protected Collection<Method> suppressForUnmodifiableNavigableMap()
    • suppressForUnmodifiableSortedMap

      protected Collection<Method> suppressForUnmodifiableSortedMap()
    • suppressForEnumMap

      protected Collection<Method> suppressForEnumMap()
    • suppressForConcurrentHashMap

      protected Collection<Method> suppressForConcurrentHashMap()
    • suppressForConcurrentSkipListMap

      protected Collection<Method> suppressForConcurrentSkipListMap()
    • testsForCheckedMap

      public junit.framework.Test testsForCheckedMap()
    • testsForCheckedNavigableMap

      public junit.framework.Test testsForCheckedNavigableMap()
    • testsForCheckedSortedMap

      public junit.framework.Test testsForCheckedSortedMap()
    • testsForEmptyMap

      public junit.framework.Test testsForEmptyMap()
    • testsForEmptyNavigableMap

      public junit.framework.Test testsForEmptyNavigableMap()
    • testsForEmptySortedMap

      public junit.framework.Test testsForEmptySortedMap()
    • testsForSingletonMap

      public junit.framework.Test testsForSingletonMap()
    • testsForHashMap

      public junit.framework.Test testsForHashMap()
    • testsForHashtable

      public junit.framework.Test testsForHashtable()
    • testsForLinkedHashMap

      public junit.framework.Test testsForLinkedHashMap()
    • testsForSynchronizedNavigableMap

      public junit.framework.Test testsForSynchronizedNavigableMap()
      Tests regular NavigableMap behavior of synchronizedNavigableMap(treeMap); does not test the fact that it's synchronized.
    • testsForTreeMapNatural

      public junit.framework.Test testsForTreeMapNatural()
    • testsForTreeMapWithComparator

      public junit.framework.Test testsForTreeMapWithComparator()
    • testsForUnmodifiableMap

      public junit.framework.Test testsForUnmodifiableMap()
    • testsForUnmodifiableNavigableMap

      public junit.framework.Test testsForUnmodifiableNavigableMap()
    • testsForUnmodifiableSortedMap

      public junit.framework.Test testsForUnmodifiableSortedMap()
    • testsForEnumMap

      public junit.framework.Test testsForEnumMap()
    • testsForConcurrentHashMap

      public junit.framework.Test testsForConcurrentHashMap()
    • testsForConcurrentSkipListMapNatural

      public junit.framework.Test testsForConcurrentSkipListMapNatural()
    • testsForConcurrentSkipListMapWithComparator

      public junit.framework.Test testsForConcurrentSkipListMapWithComparator()
    • toHashMap

      private static Map<String,String> toHashMap(Map.Entry<String,String>[] entries)
    • populate

      private static <T, M extends Map<T, String>> M populate(M map, Map.Entry<T,String>[] entries)
    • arbitraryNullFriendlyComparator

      static <T> Comparator<T> arbitraryNullFriendlyComparator()