Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 110 for addEqualityGroup (0.15 sec)

  1. android/guava-tests/test/com/google/common/collect/ForwardingNavigableSetTest.java

      public void testEquals() {
        NavigableSet<String> set1 = ImmutableSortedSet.of("one");
        NavigableSet<String> set2 = ImmutableSortedSet.of("two");
        new EqualsTester()
            .addEqualityGroup(set1, wrap(set1), wrap(set1))
            .addEqualityGroup(set2, wrap(set2))
            .testEquals();
      }
    
      private static <T> NavigableSet<T> wrap(final NavigableSet<T> delegate) {
        return new ForwardingNavigableSet<T>() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/net/InternetDomainNameTest.java

      }
    
      public void testEquality() {
        new EqualsTester()
            .addEqualityGroup(idn("google.com"), idn("google.com"), idn("GOOGLE.COM"))
            .addEqualityGroup(idn("www.google.com"))
            .addEqualityGroup(UNICODE_EXAMPLE)
            .addEqualityGroup(PUNYCODE_EXAMPLE)
            .testEquals();
      }
    
      private static InternetDomainName idn(String domain) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 15:41:36 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/EnumBiMapTest.java

      }
    
      public void testEquals() {
        new EqualsTester()
            .addEqualityGroup(
                EnumBiMap.create(ImmutableMap.of(Currency.DOLLAR, Country.CANADA)),
                EnumBiMap.create(ImmutableMap.of(Currency.DOLLAR, Country.CANADA)))
            .addEqualityGroup(EnumBiMap.create(ImmutableMap.of(Currency.DOLLAR, Country.CHILE)))
            .addEqualityGroup(EnumBiMap.create(ImmutableMap.of(Currency.FRANC, Country.CANADA)))
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  4. 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)
  5. guava-testlib/src/com/google/common/collect/testing/testers/MapSerializationTester.java

      @CollectionFeature.Require(SERIALIZABLE)
      public void testReserializeMap() {
        Map<K, V> deserialized = SerializableTester.reserialize(getMap());
        new EqualsTester().addEqualityGroup(getMap(), deserialized).testEquals();
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 20:12:35 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/net/HostAndPortTest.java

        HostAndPort hpWithPort2 = HostAndPort.fromParts("foo::123", 80);
        HostAndPort hpWithPort3 = HostAndPort.fromString("[foo::123]:80");
    
        new EqualsTester()
            .addEqualityGroup(hpNoPort1, hpNoPort2, hpNoPort3, hpNoPort4, hpNoPort5)
            .addEqualityGroup(hpWithPort1, hpWithPort2, hpWithPort3)
            .testEquals();
      }
    
      public void testRequireBracketsForIPv6() {
        // Bracketed IPv6 works fine.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 15:41:36 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/ForwardingMultisetTest.java

      }
    
      public void testEquals() {
        Multiset<String> set1 = ImmutableMultiset.of("one");
        Multiset<String> set2 = ImmutableMultiset.of("two");
        new EqualsTester()
            .addEqualityGroup(set1, wrap(set1), wrap(set1))
            .addEqualityGroup(set2, wrap(set2))
            .testEquals();
      }
    
      private static <T> Multiset<T> wrap(final Multiset<T> delegate) {
        return new ForwardingMultiset<T>() {
          @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/primitives/ImmutableIntArrayTest.java

      public void testEquals() {
        new EqualsTester()
            .addEqualityGroup(ImmutableIntArray.of())
            .addEqualityGroup(
                ImmutableIntArray.of(1, 2),
                reserialize(ImmutableIntArray.of(1, 2)),
                ImmutableIntArray.of(0, 1, 2, 3).subArray(1, 3))
            .addEqualityGroup(ImmutableIntArray.of(1, 3))
            .addEqualityGroup(ImmutableIntArray.of(1, 2, 3))
            .testEquals();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 20.1K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java

      public void testEquals() {
        new EqualsTester()
            .addEqualityGroup(ImmutableDoubleArray.of())
            .addEqualityGroup(
                ImmutableDoubleArray.of(1, 2),
                reserialize(ImmutableDoubleArray.of(1, 2)),
                ImmutableDoubleArray.of(0, 1, 2, 3).subArray(1, 3))
            .addEqualityGroup(ImmutableDoubleArray.of(1, 3))
            .addEqualityGroup(ImmutableDoubleArray.of(1, 2, 3))
            .testEquals();
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/ForwardingMultisetTest.java

      }
    
      public void testEquals() {
        Multiset<String> set1 = ImmutableMultiset.of("one");
        Multiset<String> set2 = ImmutableMultiset.of("two");
        new EqualsTester()
            .addEqualityGroup(set1, wrap(set1), wrap(set1))
            .addEqualityGroup(set2, wrap(set2))
            .testEquals();
      }
    
      private static <T> Multiset<T> wrap(final Multiset<T> delegate) {
        return new ForwardingMultiset<T>() {
          @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 11.8K bytes
    - Viewed (0)
Back to top