Class TestsForMapsInJavaUtil


  • public class TestsForMapsInJavaUtil
    extends java.lang.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 Detail

      • TestsForMapsInJavaUtil

        public TestsForMapsInJavaUtil()
    • Method Detail

      • suite

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

        public junit.framework.Test allTests()
      • suppressForCheckedMap

        protected java.util.Collection<java.lang.reflect.Method> suppressForCheckedMap()
      • suppressForCheckedNavigableMap

        protected java.util.Collection<java.lang.reflect.Method> suppressForCheckedNavigableMap()
      • suppressForCheckedSortedMap

        protected java.util.Collection<java.lang.reflect.Method> suppressForCheckedSortedMap()
      • suppressForEmptyMap

        protected java.util.Collection<java.lang.reflect.Method> suppressForEmptyMap()
      • suppressForEmptyNavigableMap

        private java.util.Collection<java.lang.reflect.Method> suppressForEmptyNavigableMap()
      • suppressForEmptySortedMap

        private java.util.Collection<java.lang.reflect.Method> suppressForEmptySortedMap()
      • suppressForSingletonMap

        protected java.util.Collection<java.lang.reflect.Method> suppressForSingletonMap()
      • suppressForHashMap

        protected java.util.Collection<java.lang.reflect.Method> suppressForHashMap()
      • suppressForHashtable

        protected java.util.Collection<java.lang.reflect.Method> suppressForHashtable()
      • suppressForLinkedHashMap

        protected java.util.Collection<java.lang.reflect.Method> suppressForLinkedHashMap()
      • suppressForSynchronizedNavigableMap

        protected java.util.Collection<java.lang.reflect.Method> suppressForSynchronizedNavigableMap()
      • suppressForTreeMapNatural

        protected java.util.Collection<java.lang.reflect.Method> suppressForTreeMapNatural()
      • suppressForTreeMapWithComparator

        protected java.util.Collection<java.lang.reflect.Method> suppressForTreeMapWithComparator()
      • suppressForUnmodifiableMap

        protected java.util.Collection<java.lang.reflect.Method> suppressForUnmodifiableMap()
      • suppressForUnmodifiableNavigableMap

        protected java.util.Collection<java.lang.reflect.Method> suppressForUnmodifiableNavigableMap()
      • suppressForUnmodifiableSortedMap

        protected java.util.Collection<java.lang.reflect.Method> suppressForUnmodifiableSortedMap()
      • suppressForEnumMap

        protected java.util.Collection<java.lang.reflect.Method> suppressForEnumMap()
      • suppressForConcurrentHashMap

        protected java.util.Collection<java.lang.reflect.Method> suppressForConcurrentHashMap()
      • suppressForConcurrentSkipListMap

        protected java.util.Collection<java.lang.reflect.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 java.util.Map<java.lang.String,​java.lang.String> toHashMap​(java.util.Map.Entry<java.lang.String,​java.lang.String>[] entries)
      • populate

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

        static <T> java.util.Comparator<T> arbitraryNullFriendlyComparator()