Class TestsForSetsInJavaUtil
- java.lang.Object
-
- com.google.common.collect.testing.TestsForSetsInJavaUtil
-
@GwtIncompatible public class TestsForSetsInJavaUtil extends java.lang.Object
Generates a test suite covering theSet
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
TestsForSetsInJavaUtil.NullFriendlyComparator<T>
-
Constructor Summary
Constructors Constructor Description TestsForSetsInJavaUtil()
-
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 java.lang.String[]
dedupe(java.lang.String[] elements)
static junit.framework.Test
suite()
protected java.util.Collection<java.lang.reflect.Method>
suppressForAbstractSet()
protected java.util.Collection<java.lang.reflect.Method>
suppressForCheckedNavigableSet()
protected java.util.Collection<java.lang.reflect.Method>
suppressForCheckedSet()
protected java.util.Collection<java.lang.reflect.Method>
suppressForCheckedSortedSet()
protected java.util.Collection<java.lang.reflect.Method>
suppressForConcurrentSkipListSetNatural()
protected java.util.Collection<java.lang.reflect.Method>
suppressForConcurrentSkipListSetWithComparator()
protected java.util.Collection<java.lang.reflect.Method>
suppressForCopyOnWriteArraySet()
protected java.util.Collection<java.lang.reflect.Method>
suppressForEmptyNavigableSet()
protected java.util.Collection<java.lang.reflect.Method>
suppressForEmptySet()
protected java.util.Collection<java.lang.reflect.Method>
suppressForEmptySortedSet()
protected java.util.Collection<java.lang.reflect.Method>
suppressForEnumSet()
protected java.util.Collection<java.lang.reflect.Method>
suppressForHashSet()
protected java.util.Collection<java.lang.reflect.Method>
suppressForLinkedHashSet()
protected java.util.Collection<java.lang.reflect.Method>
suppressForSingletonSet()
protected java.util.Collection<java.lang.reflect.Method>
suppressForSynchronizedNavigableSet()
protected java.util.Collection<java.lang.reflect.Method>
suppressForTreeSetNatural()
protected java.util.Collection<java.lang.reflect.Method>
suppressForTreeSetWithComparator()
protected java.util.Collection<java.lang.reflect.Method>
suppressForUnmodifiableNavigableSet()
protected java.util.Collection<java.lang.reflect.Method>
suppressForUnmodifiableSet()
junit.framework.Test
testsForAbstractSet()
junit.framework.Test
testsForBadlyCollidingHashSet()
junit.framework.Test
testsForCheckedNavigableSet()
junit.framework.Test
testsForCheckedSet()
junit.framework.Test
testsForCheckedSortedSet()
junit.framework.Test
testsForConcurrentSkipListSetNatural()
junit.framework.Test
testsForConcurrentSkipListSetWithComparator()
junit.framework.Test
testsForCopyOnWriteArraySet()
junit.framework.Test
testsForEmptyNavigableSet()
junit.framework.Test
testsForEmptySet()
junit.framework.Test
testsForEmptySortedSet()
junit.framework.Test
testsForEnumSet()
junit.framework.Test
testsForHashSet()
junit.framework.Test
testsForLinkedHashSet()
junit.framework.Test
testsForSingletonSet()
junit.framework.Test
testsForSynchronizedNavigableSet()
Tests regular NavigableSet behavior of synchronizedNavigableSet(treeSet); does not test the fact that it's synchronized.junit.framework.Test
testsForTreeSetNatural()
junit.framework.Test
testsForTreeSetWithComparator()
junit.framework.Test
testsForUnmodifiableNavigableSet()
junit.framework.Test
testsForUnmodifiableSet()
-
-
-
Method Detail
-
suite
public static junit.framework.Test suite()
-
allTests
public junit.framework.Test allTests()
-
suppressForCheckedNavigableSet
protected java.util.Collection<java.lang.reflect.Method> suppressForCheckedNavigableSet()
-
suppressForEmptySet
protected java.util.Collection<java.lang.reflect.Method> suppressForEmptySet()
-
suppressForEmptyNavigableSet
protected java.util.Collection<java.lang.reflect.Method> suppressForEmptyNavigableSet()
-
suppressForEmptySortedSet
protected java.util.Collection<java.lang.reflect.Method> suppressForEmptySortedSet()
-
suppressForSingletonSet
protected java.util.Collection<java.lang.reflect.Method> suppressForSingletonSet()
-
suppressForHashSet
protected java.util.Collection<java.lang.reflect.Method> suppressForHashSet()
-
suppressForLinkedHashSet
protected java.util.Collection<java.lang.reflect.Method> suppressForLinkedHashSet()
-
suppressForEnumSet
protected java.util.Collection<java.lang.reflect.Method> suppressForEnumSet()
-
suppressForSynchronizedNavigableSet
protected java.util.Collection<java.lang.reflect.Method> suppressForSynchronizedNavigableSet()
-
suppressForTreeSetNatural
protected java.util.Collection<java.lang.reflect.Method> suppressForTreeSetNatural()
-
suppressForTreeSetWithComparator
protected java.util.Collection<java.lang.reflect.Method> suppressForTreeSetWithComparator()
-
suppressForCopyOnWriteArraySet
protected java.util.Collection<java.lang.reflect.Method> suppressForCopyOnWriteArraySet()
-
suppressForUnmodifiableSet
protected java.util.Collection<java.lang.reflect.Method> suppressForUnmodifiableSet()
-
suppressForUnmodifiableNavigableSet
protected java.util.Collection<java.lang.reflect.Method> suppressForUnmodifiableNavigableSet()
-
suppressForCheckedSet
protected java.util.Collection<java.lang.reflect.Method> suppressForCheckedSet()
-
suppressForCheckedSortedSet
protected java.util.Collection<java.lang.reflect.Method> suppressForCheckedSortedSet()
-
suppressForAbstractSet
protected java.util.Collection<java.lang.reflect.Method> suppressForAbstractSet()
-
suppressForConcurrentSkipListSetNatural
protected java.util.Collection<java.lang.reflect.Method> suppressForConcurrentSkipListSetNatural()
-
suppressForConcurrentSkipListSetWithComparator
protected java.util.Collection<java.lang.reflect.Method> suppressForConcurrentSkipListSetWithComparator()
-
testsForCheckedNavigableSet
public junit.framework.Test testsForCheckedNavigableSet()
-
testsForEmptySet
public junit.framework.Test testsForEmptySet()
-
testsForEmptyNavigableSet
public junit.framework.Test testsForEmptyNavigableSet()
-
testsForEmptySortedSet
public junit.framework.Test testsForEmptySortedSet()
-
testsForSingletonSet
public junit.framework.Test testsForSingletonSet()
-
testsForHashSet
public junit.framework.Test testsForHashSet()
-
testsForLinkedHashSet
public junit.framework.Test testsForLinkedHashSet()
-
testsForEnumSet
public junit.framework.Test testsForEnumSet()
-
testsForSynchronizedNavigableSet
public junit.framework.Test testsForSynchronizedNavigableSet()
Tests regular NavigableSet behavior of synchronizedNavigableSet(treeSet); does not test the fact that it's synchronized.
-
testsForTreeSetNatural
public junit.framework.Test testsForTreeSetNatural()
-
testsForTreeSetWithComparator
public junit.framework.Test testsForTreeSetWithComparator()
-
testsForCopyOnWriteArraySet
public junit.framework.Test testsForCopyOnWriteArraySet()
-
testsForUnmodifiableSet
public junit.framework.Test testsForUnmodifiableSet()
-
testsForUnmodifiableNavigableSet
public junit.framework.Test testsForUnmodifiableNavigableSet()
-
testsForCheckedSet
public junit.framework.Test testsForCheckedSet()
-
testsForCheckedSortedSet
public junit.framework.Test testsForCheckedSortedSet()
-
testsForAbstractSet
public junit.framework.Test testsForAbstractSet()
-
testsForBadlyCollidingHashSet
public junit.framework.Test testsForBadlyCollidingHashSet()
-
testsForConcurrentSkipListSetNatural
public junit.framework.Test testsForConcurrentSkipListSetNatural()
-
testsForConcurrentSkipListSetWithComparator
public junit.framework.Test testsForConcurrentSkipListSetWithComparator()
-
dedupe
private static java.lang.String[] dedupe(java.lang.String[] elements)
-
arbitraryNullFriendlyComparator
static <T> java.util.Comparator<T> arbitraryNullFriendlyComparator()
-
-