Class TestsForMapsInJavaUtil
- java.lang.Object
-
- com.google.common.collect.testing.TestsForMapsInJavaUtil
-
@GwtIncompatible public class TestsForMapsInJavaUtil extends java.lang.Object
Generates a test suite covering theMapimplementations in thejava.utilpackage. Can be subclassed to specify tests that should be suppressed.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classTestsForMapsInJavaUtil.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.TestallTests()(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.Testsuite()protected java.util.Collection<java.lang.reflect.Method>suppressForCheckedMap()protected java.util.Collection<java.lang.reflect.Method>suppressForCheckedNavigableMap()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()private java.util.Collection<java.lang.reflect.Method>suppressForEmptyNavigableMap()private java.util.Collection<java.lang.reflect.Method>suppressForEmptySortedMap()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>suppressForSynchronizedNavigableMap()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>suppressForUnmodifiableNavigableMap()protected java.util.Collection<java.lang.reflect.Method>suppressForUnmodifiableSortedMap()junit.framework.TesttestsForCheckedMap()junit.framework.TesttestsForCheckedNavigableMap()junit.framework.TesttestsForCheckedSortedMap()junit.framework.TesttestsForConcurrentHashMap()junit.framework.TesttestsForConcurrentSkipListMapNatural()junit.framework.TesttestsForConcurrentSkipListMapWithComparator()junit.framework.TesttestsForEmptyMap()junit.framework.TesttestsForEmptyNavigableMap()junit.framework.TesttestsForEmptySortedMap()junit.framework.TesttestsForEnumMap()junit.framework.TesttestsForHashMap()junit.framework.TesttestsForHashtable()junit.framework.TesttestsForLinkedHashMap()junit.framework.TesttestsForSingletonMap()junit.framework.TesttestsForSynchronizedNavigableMap()Tests regular NavigableMap behavior of synchronizedNavigableMap(treeMap); does not test the fact that it's synchronized.junit.framework.TesttestsForTreeMapNatural()junit.framework.TesttestsForTreeMapWithComparator()junit.framework.TesttestsForUnmodifiableMap()junit.framework.TesttestsForUnmodifiableNavigableMap()junit.framework.TesttestsForUnmodifiableSortedMap()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()
-
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()
-
-