Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for testEqualsAndHashCode (0.16 sec)

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

      }
    
      public void testTransform_absent_functionReturnsNull() {
        assertEquals(Optional.absent(), Optional.absent().transform(input -> null));
      }
    
      public void testEqualsAndHashCode() {
        new EqualsTester()
            .addEqualityGroup(Optional.absent(), reserialize(Optional.absent()))
            .addEqualityGroup(Optional.of(Long.valueOf(5)), reserialize(Optional.of(Long.valueOf(5))))
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 17 18:14:12 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/cache/CacheBuilderSpecTest.java

        assertThrows(IllegalArgumentException.class, () -> parse(",weakKeys"));
    
        assertThrows(IllegalArgumentException.class, () -> parse("weakKeys,,softValues"));
      }
    
      public void testEqualsAndHashCode() {
        new EqualsTester()
            .addEqualityGroup(parse(""), parse(""))
            .addEqualityGroup(parse("concurrencyLevel=7"), parse("concurrencyLevel=7"))
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 19.1K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/FilteredCollectionsTestUtil.java

          }
        }
      }
    
      public abstract static class AbstractFilteredSetTest<C extends Set<Integer>>
          extends AbstractFilteredCollectionTest<C> {
        public void testEqualsAndHashCode() {
          for (List<Integer> contents : SAMPLE_INPUTS) {
            Set<Integer> expected = newHashSet();
            for (Integer i : contents) {
              if (EVEN.apply(i)) {
                expected.add(i);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 13K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java

      /* The names of the expected method that tests equals. */
      private static final ImmutableList<String> EQUALS_TEST_METHOD_NAMES =
          ImmutableList.of(
              "testEquals",
              "testEqualsAndHashCode",
              "testEqualsAndSerializable",
              "testEqualsAndSerialization",
              "testEquality");
    
      private static final Chopper TEST_SUFFIX =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 19:43:49 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/cache/CacheBuilderSpecTest.java

        assertThrows(IllegalArgumentException.class, () -> parse(",weakKeys"));
    
        assertThrows(IllegalArgumentException.class, () -> parse("weakKeys,,softValues"));
      }
    
      public void testEqualsAndHashCode() {
        new EqualsTester()
            .addEqualityGroup(parse(""), parse(""))
            .addEqualityGroup(parse("concurrencyLevel=7"), parse("concurrencyLevel=7"))
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 19.1K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/math/StatsTest.java

            .of(MEGA_STREAM_POPULATION_VARIANCE);
        assertThat(stats.min()).isEqualTo(MEGA_STREAM_MIN);
        assertThat(stats.max()).isEqualTo(MEGA_STREAM_MAX);
      }
    
      public void testEqualsAndHashCode() {
        new EqualsTester()
            .addEqualityGroup(
                Stats.of(1.0, 1.0, 5.0, 5.0),
                Stats.of(1.0, 1.0, 5.0, 5.0),
                Stats.of(ImmutableList.of(1.0, 1.0, 5.0, 5.0)),
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 23 16:45:30 UTC 2024
    - 33.3K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java

      /* The names of the expected method that tests equals. */
      private static final ImmutableList<String> EQUALS_TEST_METHOD_NAMES =
          ImmutableList.of(
              "testEquals",
              "testEqualsAndHashCode",
              "testEqualsAndSerializable",
              "testEqualsAndSerialization",
              "testEquality");
    
      private static final Chopper TEST_SUFFIX =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 19:43:49 UTC 2024
    - 17.9K bytes
    - Viewed (0)
Back to top