Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for SelfEquals (0.09 sec)

  1. guava-testlib/src/com/google/common/collect/testing/testers/CollectionEqualsTester.java

    @SuppressWarnings("JUnit4ClassUsedInJUnit3")
    public class CollectionEqualsTester<E> extends AbstractCollectionTester<E> {
    
      // TODO(cpovirk): Consider using EqualsTester from Guava.
      @SuppressWarnings("SelfEquals")
      public void testEquals_self() {
        assertTrue("An Object should be equal to itself.", collection.equals(collection));
      }
    
      public void testEquals_null() {
        // noinspection ObjectEqualsNull
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 20:12:35 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionEqualsTester.java

    @SuppressWarnings("JUnit4ClassUsedInJUnit3")
    public class CollectionEqualsTester<E> extends AbstractCollectionTester<E> {
    
      // TODO(cpovirk): Consider using EqualsTester from Guava.
      @SuppressWarnings("SelfEquals")
      public void testEquals_self() {
        assertTrue("An Object should be equal to itself.", collection.equals(collection));
      }
    
      public void testEquals_null() {
        // noinspection ObjectEqualsNull
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 20:12:35 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/Helpers.java

            assertTrue(
                comparator + ".compare(" + greater + ", " + t + ")",
                comparator.compare(greater, t) > 0);
          }
        }
      }
    
      @SuppressWarnings({"SelfComparison", "SelfEquals"})
      public static <T extends Comparable<? super T>> void testCompareToAndEquals(
          List<T> valuesInExpectedOrder) {
        // This does an O(n^2) test of all pairs of values in both orders
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/Helpers.java

            assertTrue(
                comparator + ".compare(" + greater + ", " + t + ")",
                comparator.compare(greater, t) > 0);
          }
        }
      }
    
      @SuppressWarnings({"SelfComparison", "SelfEquals"})
      public static <T extends Comparable<? super T>> void testCompareToAndEquals(
          List<T> valuesInExpectedOrder) {
        // This does an O(n^2) test of all pairs of values in both orders
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 17.5K bytes
    - Viewed (0)
Back to top