Class TestsForSetsInJavaUtil

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

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

    • TestsForSetsInJavaUtil

      public TestsForSetsInJavaUtil()
  • Method Details

    • suite

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

      public junit.framework.Test allTests()
    • suppressForCheckedNavigableSet

      protected Collection<Method> suppressForCheckedNavigableSet()
    • suppressForEmptySet

      protected Collection<Method> suppressForEmptySet()
    • suppressForEmptyNavigableSet

      protected Collection<Method> suppressForEmptyNavigableSet()
    • suppressForEmptySortedSet

      protected Collection<Method> suppressForEmptySortedSet()
    • suppressForSingletonSet

      protected Collection<Method> suppressForSingletonSet()
    • suppressForHashSet

      protected Collection<Method> suppressForHashSet()
    • suppressForLinkedHashSet

      protected Collection<Method> suppressForLinkedHashSet()
    • suppressForEnumSet

      protected Collection<Method> suppressForEnumSet()
    • suppressForSynchronizedNavigableSet

      protected Collection<Method> suppressForSynchronizedNavigableSet()
    • suppressForTreeSetNatural

      protected Collection<Method> suppressForTreeSetNatural()
    • suppressForTreeSetWithComparator

      protected Collection<Method> suppressForTreeSetWithComparator()
    • suppressForCopyOnWriteArraySet

      protected Collection<Method> suppressForCopyOnWriteArraySet()
    • suppressForUnmodifiableSet

      protected Collection<Method> suppressForUnmodifiableSet()
    • suppressForUnmodifiableNavigableSet

      protected Collection<Method> suppressForUnmodifiableNavigableSet()
    • suppressForCheckedSet

      protected Collection<Method> suppressForCheckedSet()
    • suppressForCheckedSortedSet

      protected Collection<Method> suppressForCheckedSortedSet()
    • suppressForAbstractSet

      protected Collection<Method> suppressForAbstractSet()
    • suppressForConcurrentSkipListSetNatural

      protected Collection<Method> suppressForConcurrentSkipListSetNatural()
    • suppressForConcurrentSkipListSetWithComparator

      protected Collection<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 String[] dedupe(String[] elements)
    • arbitraryNullFriendlyComparator

      static <T> Comparator<T> arbitraryNullFriendlyComparator()