Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 110 for addEqualityGroup (0.15 sec)

  1. guava-tests/test/com/google/common/hash/FunnelsTest.java

        new EqualsTester()
            .addEqualityGroup(Funnels.byteArrayFunnel())
            .addEqualityGroup(Funnels.integerFunnel())
            .addEqualityGroup(Funnels.longFunnel())
            .addEqualityGroup(Funnels.unencodedCharsFunnel())
            .addEqualityGroup(Funnels.stringFunnel(UTF_8))
            .addEqualityGroup(Funnels.stringFunnel(US_ASCII))
            .addEqualityGroup(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/cache/RemovalNotificationTest.java

      public void testEquals() {
        new EqualsTester()
            .addEqualityGroup(
                RemovalNotification.create("one", 1, RemovalCause.EXPLICIT),
                RemovalNotification.create("one", 1, RemovalCause.REPLACED))
            .addEqualityGroup(RemovalNotification.create("1", 1, RemovalCause.EXPLICIT))
            .addEqualityGroup(RemovalNotification.create("one", 2, RemovalCause.EXPLICIT))
            .testEquals();
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 1.2K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/math/PairedStatsTest.java

            .addEqualityGroup(
                new PairedStats(OTHER_MANY_VALUES_STATS, MANY_VALUES_STATS_ITERABLE, 1.23))
            .addEqualityGroup(
                new PairedStats(MANY_VALUES_STATS_ITERABLE, MANY_VALUES_STATS_ITERABLE, 1.23))
            .addEqualityGroup(new PairedStats(TWO_VALUES_STATS, MANY_VALUES_STATS_ITERABLE, 1.23))
            .addEqualityGroup(new PairedStats(MANY_VALUES_STATS_ITERABLE, ONE_VALUE_STATS, 1.23))
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 03 21:17:33 UTC 2024
    - 14K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/OrderingTest.java

            assertThrows(IncomparableValueException.class, () -> c.compare(5, 666));
        assertEquals(666, expected.value);
        new EqualsTester()
            .addEqualityGroup(c, Ordering.explicit(42, 5))
            .addEqualityGroup(Ordering.explicit(5, 42))
            .addEqualityGroup(Ordering.explicit(42))
            .testEquals();
        reserializeAndAssert(c);
      }
    
      public void testExplicit_sortingExample() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/OrderingTest.java

            assertThrows(IncomparableValueException.class, () -> c.compare(5, 666));
        assertEquals(666, expected.value);
        new EqualsTester()
            .addEqualityGroup(c, Ordering.explicit(42, 5))
            .addEqualityGroup(Ordering.explicit(5, 42))
            .addEqualityGroup(Ordering.explicit(42))
            .testEquals();
        reserializeAndAssert(c);
      }
    
      public void testExplicit_sortingExample() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/net/MediaTypeTest.java

                MediaType.parse("text/plain; charset=\tUTF-8"))
            .addEqualityGroup(MediaType.parse("text/plain; charset=utf-8; charset=utf-8"))
            .addEqualityGroup(
                MediaType.create("text", "plain").withParameter("a", "value"),
                MediaType.create("text", "plain").withParameter("A", "value"))
            .addEqualityGroup(
                MediaType.create("text", "plain").withParameter("a", "VALUE"),
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 15:41:36 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java

        FreshValueGenerator generator = new FreshValueGenerator();
        T instance = generator.newFreshProxy(interfaceType);
        new EqualsTester()
            .addEqualityGroup(wrapperFunction.apply(instance), wrapperFunction.apply(instance))
            .addEqualityGroup(wrapperFunction.apply(generator.newFreshProxy(interfaceType)))
            // TODO: add an overload to EqualsTester to print custom error message?
            .testEquals();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:00:28 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/hash/BloomFilterTest.java

        new EqualsTester()
            .addEqualityGroup(BloomFilter.create(Funnels.byteArrayFunnel(), 100, 0.01))
            .addEqualityGroup(BloomFilter.create(Funnels.byteArrayFunnel(), 100, 0.02))
            .addEqualityGroup(BloomFilter.create(Funnels.byteArrayFunnel(), 200, 0.01))
            .addEqualityGroup(BloomFilter.create(Funnels.byteArrayFunnel(), 200, 0.02))
            .addEqualityGroup(BloomFilter.create(Funnels.unencodedCharsFunnel(), 100, 0.01))
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/reflect/TypeParameterTest.java

      }
    
      public <A, B> void testEquals() throws Exception {
        Method method = TypeParameterTest.class.getDeclaredMethod("testEquals");
        new EqualsTester()
            .addEqualityGroup(new TypeParameter<A>() {}, new TypeParameter<A>() {})
            .addEqualityGroup(new TypeParameter<B>() {})
            .testEquals();
      }
    
      public void testNullPointers() {
        new NullPointerTester().testAllPublicStaticMethods(TypeParameter.class);
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/math/StatsTest.java

            .addEqualityGroup(Stats.of(2.0, 6.0, 2.0, 6.0))
            .addEqualityGroup(
                new Stats(5, -5.5, 55.5, -5.55, 5.55), new Stats(5, -5.5, 55.5, -5.55, 5.55))
            .addEqualityGroup(new Stats(6, -5.5, 55.5, -5.55, 5.55))
            .addEqualityGroup(new Stats(5, -5.6, 55.5, -5.55, 5.55))
            .addEqualityGroup(new Stats(5, -5.5, 55.6, -5.55, 5.55))
            .addEqualityGroup(new Stats(5, -5.5, 55.5, -5.56, 5.55))
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 23 16:45:30 UTC 2024
    - 33.3K bytes
    - Viewed (0)
Back to top