Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 65 for EqualsTester (0.73 seconds)

  1. android/guava-tests/test/com/google/common/base/PredicatesTest.java

      }
    
      public void testNot_equality() {
        new EqualsTester()
            .addEqualityGroup(Predicates.not(isOdd()), Predicates.not(isOdd()))
            .addEqualityGroup(Predicates.not(TRUE))
            .addEqualityGroup(isOdd())
            .testEquals();
      }
    
      public void testNot_equalityForNotOfKnownValues() {
        new EqualsTester()
            .addEqualityGroup(TRUE, Predicates.alwaysTrue())
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 32.2K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/base/FunctionsTest.java

        assertThat(g.apply(2)).isNull();
        assertThat(g.apply(null)).isNull();
    
        new EqualsTester()
            .addEqualityGroup(f, Functions.constant("correct"))
            .addEqualityGroup(Functions.constant("incorrect"))
            .addEqualityGroup(Functions.toStringFunction())
            .addEqualityGroup(g)
            .testEquals();
    
        new EqualsTester()
            .addEqualityGroup(g, Functions.<@Nullable Object>constant(null))
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 15:59:55 GMT 2026
    - 16.2K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/base/EquivalenceTest.java

    import com.google.common.annotations.J2ktIncompatible;
    import com.google.common.base.Equivalence.Wrapper;
    import com.google.common.collect.ImmutableList;
    import com.google.common.testing.EqualsTester;
    import com.google.common.testing.EquivalenceTester;
    import com.google.common.testing.NullPointerTester;
    import com.google.common.testing.SerializableTester;
    import junit.framework.TestCase;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 6.6K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/reflect/TypesTest.java

        new EqualsTester().addEqualityGroup(jvmType, ourType).testEquals();
      }
    
      public void testNewArrayType_primitive() {
        Type jvmType = new TypeCapture<int[]>() {}.capture();
        Type ourType = Types.newArrayType(int.class);
        assertThat(ourType.toString()).isEqualTo(jvmType.toString());
        new EqualsTester().addEqualityGroup(jvmType, ourType).testEquals();
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 15.5K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/base/FunctionsTest.java

        assertThat(g.apply(2)).isNull();
        assertThat(g.apply(null)).isNull();
    
        new EqualsTester()
            .addEqualityGroup(f, Functions.constant("correct"))
            .addEqualityGroup(Functions.constant("incorrect"))
            .addEqualityGroup(Functions.toStringFunction())
            .addEqualityGroup(g)
            .testEquals();
    
        new EqualsTester()
            .addEqualityGroup(g, Functions.<@Nullable Object>constant(null))
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 15:59:55 GMT 2026
    - 16.2K bytes
    - Click Count (0)
  6. guava-tests/test/com/google/common/primitives/UnsignedIntegerTest.java

          }
        }
      }
    
      @J2ktIncompatible
      @GwtIncompatible // too slow
      public void testEquals() {
        EqualsTester equalsTester = new EqualsTester();
        for (int a : TEST_INTS) {
          long value = a & 0xffffffffL;
          equalsTester.addEqualityGroup(
              UnsignedInteger.fromIntBits(a),
              UnsignedInteger.valueOf(value),
              UnsignedInteger.valueOf(Long.toString(value)),
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Dec 11 20:45:32 GMT 2025
    - 9.6K bytes
    - Click Count (0)
  7. guava-tests/test/com/google/common/collect/TablesTest.java

    import com.google.common.annotations.GwtCompatible;
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.collect.Table.Cell;
    import com.google.common.testing.EqualsTester;
    import com.google.common.testing.SerializableTester;
    import junit.framework.TestCase;
    import org.jspecify.annotations.NullMarked;
    import org.jspecify.annotations.Nullable;
    
    /**
     * Tests for {@link Tables}.
     *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 3.1K bytes
    - Click Count (0)
  8. guava-tests/test/com/google/common/primitives/UnsignedLongTest.java

          }
        }
      }
    
      @GwtIncompatible // too slow
      public void testEquals() {
        EqualsTester equalsTester = new EqualsTester();
        for (long a : TEST_LONGS) {
          BigInteger big =
              (a >= 0) ? BigInteger.valueOf(a) : BigInteger.valueOf(a).add(BigInteger.ZERO.setBit(64));
          equalsTester.addEqualityGroup(
              UnsignedLong.fromLongBits(a),
              UnsignedLong.valueOf(big),
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Dec 11 20:45:32 GMT 2025
    - 10.4K bytes
    - Click Count (0)
  9. android/guava-tests/test/com/google/common/collect/TablesTest.java

    import com.google.common.annotations.GwtCompatible;
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.collect.Table.Cell;
    import com.google.common.testing.EqualsTester;
    import com.google.common.testing.SerializableTester;
    import junit.framework.TestCase;
    import org.jspecify.annotations.NullMarked;
    import org.jspecify.annotations.Nullable;
    
    /**
     * Tests for {@link Tables}.
     *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 3.1K bytes
    - Click Count (0)
  10. guava-tests/test/com/google/common/collect/EmptyImmutableTableTest.java

        nonEmptyTable.put('A', 1, "blah");
    
        new EqualsTester()
            .addEqualityGroup(INSTANCE, HashBasedTable.create(), TreeBasedTable.create())
            .addEqualityGroup(nonEmptyTable)
            .testEquals();
      }
    
      @GwtIncompatible // ArrayTable
      public void testEqualsObjectNullValues() {
        new EqualsTester()
            .addEqualityGroup(INSTANCE)
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 3.3K bytes
    - Click Count (0)
Back to Top