Class TestsForMapsInJavaUtil
- java.lang.Object
-
- com.google.common.collect.testing.TestsForMapsInJavaUtil
-
@GwtIncompatible public class TestsForMapsInJavaUtil extends java.lang.Object
Generates a test suite covering theMap
implementations in thejava.util
package. Can be subclassed to specify tests that should be suppressed.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
TestsForMapsInJavaUtil.NullFriendlyComparator<T>
-
Constructor Summary
Constructors Constructor Description TestsForMapsInJavaUtil()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description junit.framework.Test
allTests()
(package private) static <T> java.util.Comparator<T>
arbitraryNullFriendlyComparator()
private static <T,M extends java.util.Map<T,java.lang.String>>
Mpopulate(M map, java.util.Map.Entry<T,java.lang.String>[] entries)
static junit.framework.Test
suite()
protected java.util.Collection<java.lang.reflect.Method>
suppressForCheckedMap()
protected java.util.Collection<java.lang.reflect.Method>
suppressForCheckedSortedMap()
protected java.util.Collection<java.lang.reflect.Method>
suppressForConcurrentHashMap()
protected java.util.Collection<java.lang.reflect.Method>
suppressForConcurrentSkipListMap()
protected java.util.Collection<java.lang.reflect.Method>
suppressForEmptyMap()
protected java.util.Collection<java.lang.reflect.Method>
suppressForEnumMap()
protected java.util.Collection<java.lang.reflect.Method>
suppressForHashMap()
protected java.util.Collection<java.lang.reflect.Method>
suppressForHashtable()
protected java.util.Collection<java.lang.reflect.Method>
suppressForLinkedHashMap()
protected java.util.Collection<java.lang.reflect.Method>
suppressForSingletonMap()
protected java.util.Collection<java.lang.reflect.Method>
suppressForTreeMapNatural()
protected java.util.Collection<java.lang.reflect.Method>
suppressForTreeMapWithComparator()
protected java.util.Collection<java.lang.reflect.Method>
suppressForUnmodifiableMap()
protected java.util.Collection<java.lang.reflect.Method>
suppressForUnmodifiableSortedMap()
junit.framework.Test
testsForCheckedMap()
junit.framework.Test
testsForCheckedSortedMap()
junit.framework.Test
testsForConcurrentHashMap()
junit.framework.Test
testsForConcurrentSkipListMapNatural()
junit.framework.Test
testsForConcurrentSkipListMapWithComparator()
junit.framework.Test
testsForEmptyMap()
junit.framework.Test
testsForEnumMap()
junit.framework.Test
testsForHashMap()
junit.framework.Test
testsForHashtable()
junit.framework.Test
testsForLinkedHashMap()
junit.framework.Test
testsForSingletonMap()
junit.framework.Test
testsForTreeMapNatural()
junit.framework.Test
testsForTreeMapWithComparator()
junit.framework.Test
testsForUnmodifiableMap()
junit.framework.Test
testsForUnmodifiableSortedMap()
private static java.util.Map<java.lang.String,java.lang.String>
toHashMap(java.util.Map.Entry<java.lang.String,java.lang.String>[] entries)
-
-
-
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()
-
suppressForCheckedSortedMap
protected java.util.Collection<java.lang.reflect.Method> suppressForCheckedSortedMap()
-
suppressForEmptyMap
protected java.util.Collection<java.lang.reflect.Method> suppressForEmptyMap()
-
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()
-
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()
-
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()
-
testsForCheckedSortedMap
public junit.framework.Test testsForCheckedSortedMap()
-
testsForEmptyMap
public junit.framework.Test testsForEmptyMap()
-
testsForSingletonMap
public junit.framework.Test testsForSingletonMap()
-
testsForHashMap
public junit.framework.Test testsForHashMap()
-
testsForHashtable
public junit.framework.Test testsForHashtable()
-
testsForLinkedHashMap
public junit.framework.Test testsForLinkedHashMap()
-
testsForTreeMapNatural
public junit.framework.Test testsForTreeMapNatural()
-
testsForTreeMapWithComparator
public junit.framework.Test testsForTreeMapWithComparator()
-
testsForUnmodifiableMap
public junit.framework.Test testsForUnmodifiableMap()
-
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()
-
-