Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 87 for addEqualityGroup (0.2 sec)

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

        Multimap<Integer, String> map1 = ImmutableMultimap.of(1, "one");
        Multimap<Integer, String> map2 = ImmutableMultimap.of(2, "two");
        new EqualsTester()
            .addEqualityGroup(map1, wrap(map1), wrap(map1))
            .addEqualityGroup(map2, wrap(map2))
            .testEquals();
      }
    
      private static <K, V> Multimap<K, V> wrap(final Multimap<K, V> delegate) {
        return new ForwardingMultimap<K, V>() {
          @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/base/SuppliersTest.java

      }
    
      public void testOfInstance_equals() {
        new EqualsTester()
            .addEqualityGroup(Suppliers.ofInstance("foo"), Suppliers.ofInstance("foo"))
            .addEqualityGroup(Suppliers.ofInstance("bar"))
            .testEquals();
      }
    
      public void testCompose_equals() {
        new EqualsTester()
            .addEqualityGroup(
                Suppliers.compose(Functions.constant(1), Suppliers.ofInstance("foo")),
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 18.1K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/base/SuppliersTest.java

      }
    
      public void testOfInstance_equals() {
        new EqualsTester()
            .addEqualityGroup(Suppliers.ofInstance("foo"), Suppliers.ofInstance("foo"))
            .addEqualityGroup(Suppliers.ofInstance("bar"))
            .testEquals();
      }
    
      public void testCompose_equals() {
        new EqualsTester()
            .addEqualityGroup(
                Suppliers.compose(Functions.constant(1), Suppliers.ofInstance("foo")),
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 18.1K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/ForwardingListMultimapTest.java

        ListMultimap<Integer, String> map1 = ImmutableListMultimap.of(1, "one");
        ListMultimap<Integer, String> map2 = ImmutableListMultimap.of(2, "two");
        new EqualsTester()
            .addEqualityGroup(map1, wrap(map1), wrap(map1))
            .addEqualityGroup(map2, wrap(map2))
            .testEquals();
      }
    
      private static <K, V> ListMultimap<K, V> wrap(final ListMultimap<K, V> delegate) {
        return new ForwardingListMultimap<K, V>() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 1.9K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/ForwardingTableTest.java

        Table<Integer, Integer, String> table1 = ImmutableTable.of(1, 1, "one");
        Table<Integer, Integer, String> table2 = ImmutableTable.of(2, 2, "two");
        new EqualsTester()
            .addEqualityGroup(table1, wrap(table1), wrap(table1))
            .addEqualityGroup(table2, wrap(table2))
            .testEquals();
      }
    
      private static <R, C, V> Table<R, C, V> wrap(final Table<R, C, V> delegate) {
        return new ForwardingTable<R, C, V>() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/ForwardingSortedSetMultimapTest.java

        SortedSetMultimap<Integer, String> map2 = TreeMultimap.create(ImmutableMultimap.of(2, "two"));
        new EqualsTester()
            .addEqualityGroup(map1, wrap(map1), wrap(map1))
            .addEqualityGroup(map2, wrap(map2))
            .testEquals();
      }
    
      private static <K, V> SortedSetMultimap<K, V> wrap(final SortedSetMultimap<K, V> delegate) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 2K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/ForwardingTableTest.java

        Table<Integer, Integer, String> table1 = ImmutableTable.of(1, 1, "one");
        Table<Integer, Integer, String> table2 = ImmutableTable.of(2, 2, "two");
        new EqualsTester()
            .addEqualityGroup(table1, wrap(table1), wrap(table1))
            .addEqualityGroup(table2, wrap(table2))
            .testEquals();
      }
    
      private static <R, C, V> Table<R, C, V> wrap(final Table<R, C, V> delegate) {
        return new ForwardingTable<R, C, V>() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/reflect/ClassPathTest.java

      private static final File FILE = new File(".");
    
      public void testEquals() {
        new EqualsTester()
            .addEqualityGroup(classInfo(ClassPathTest.class), classInfo(ClassPathTest.class))
            .addEqualityGroup(classInfo(Test.class), classInfo(Test.class, getClass().getClassLoader()))
            .addEqualityGroup(
                new ResourceInfo(FILE, "a/b/c.txt", getClass().getClassLoader()),
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Apr 26 14:02:27 GMT 2024
    - 24.9K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/google/SetMultimapAsMapTester.java

        Map<K, Collection<V>> expected = Maps.newHashMap();
        expected.put(k0(), Sets.newHashSet(v0(), v3()));
        expected.put(k1(), Sets.newHashSet(v0()));
        new EqualsTester().addEqualityGroup(expected, multimap().asMap()).testEquals();
      }
    
      @CollectionSize.Require(SEVERAL)
      public void testEntrySetEquals() {
        resetContainer(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/base/OptionalTest.java

                        }));
      }
    
      public void testEqualsAndHashCode() {
        new EqualsTester()
            .addEqualityGroup(Optional.absent(), reserialize(Optional.absent()))
            .addEqualityGroup(Optional.of(Long.valueOf(5)), reserialize(Optional.of(Long.valueOf(5))))
            .addEqualityGroup(Optional.of(Long.valueOf(42)), reserialize(Optional.of(Long.valueOf(42))))
            .testEquals();
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 10.5K bytes
    - Viewed (0)
Back to top