Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 103 for testEquals (0.18 sec)

  1. guava-testlib/src/com/google/common/collect/testing/google/MultimapEqualsTester.java

            .testEquals();
      }
    
      public void testEqualsFalse() {
        List<Entry<K, V>> targetEntries = new ArrayList<>(getSampleElements());
        targetEntries.add(Helpers.mapEntry(k0(), v3()));
        new EqualsTester()
            .addEqualityGroup(multimap())
            .addEqualityGroup(getSubjectGenerator().create(targetEntries.toArray()))
            .testEquals();
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 3.4K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/base/EquivalenceTest.java

            .addEquivalenceGroup("a")
            .test();
      }
    
      public void testEquals() {
        new EqualsTester()
            .addEqualityGroup(Equivalence.equals(), Equivalence.equals())
            .addEqualityGroup(Equivalence.identity(), Equivalence.identity())
            .testEquals();
      }
    
      @J2ktIncompatible
      @GwtIncompatible // NullPointerTester
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 6.5K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/testers/MapEqualsTester.java

    public class MapEqualsTester<K, V> extends AbstractMapTester<K, V> {
      public void testEquals_otherMapWithSameEntries() {
        assertTrue(
            "A Map should equal any other Map containing the same entries.",
            getMap().equals(newHashMap(getSampleEntries())));
      }
    
      @CollectionSize.Require(absent = CollectionSize.ZERO)
      public void testEquals_otherMapWithDifferentEntries() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 4.8K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/testers/MapEqualsTester.java

    public class MapEqualsTester<K, V> extends AbstractMapTester<K, V> {
      public void testEquals_otherMapWithSameEntries() {
        assertTrue(
            "A Map should equal any other Map containing the same entries.",
            getMap().equals(newHashMap(getSampleEntries())));
      }
    
      @CollectionSize.Require(absent = CollectionSize.ZERO)
      public void testEquals_otherMapWithDifferentEntries() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 4.8K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/testers/SetEqualsTester.java

    public class SetEqualsTester<E> extends AbstractSetTester<E> {
      public void testEquals_otherSetWithSameElements() {
        assertTrue(
            "A Set should equal any other Set containing the same elements.",
            getSet().equals(MinimalSet.from(getSampleElements())));
      }
    
      @CollectionSize.Require(absent = CollectionSize.ZERO)
      public void testEquals_otherSetWithDifferentElements() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 3.5K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/ForwardingSortedSetMultimapTest.java

                });
      }
    
      public void testEquals() {
        SortedSetMultimap<Integer, String> map1 = TreeMultimap.create(ImmutableMultimap.of(1, "one"));
        SortedSetMultimap<Integer, String> map2 = TreeMultimap.create(ImmutableMultimap.of(2, "two"));
        new EqualsTester()
            .addEqualityGroup(map1, wrap(map1), wrap(map1))
            .addEqualityGroup(map2, wrap(map2))
            .testEquals();
      }
    
    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

                  }
                });
      }
    
      public void testEquals() {
        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();
      }
    
    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/collect/EnumMultisetTest.java

      }
    
      @J2ktIncompatible
      @GwtIncompatible // reflection
      public void testEquals() throws Exception {
        new ClassSanityTester()
            .setDistinctValues(Class.class, Color.class, Gender.class)
            .setDistinctValues(Enum.class, Color.BLUE, Color.RED)
            .forAllPublicStaticMethods(EnumMultisetFactory.class)
            .testEquals();
      }
    
      @J2ktIncompatible
      @GwtIncompatible // reflection
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 16:35:21 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionEqualsTester.java

      @SuppressWarnings("SelfEquals")
      public void testEquals_self() {
        assertTrue("An Object should be equal to itself.", collection.equals(collection));
      }
    
      public void testEquals_null() {
        // noinspection ObjectEqualsNull
        assertFalse("An object should not be equal to null.", collection.equals(null));
      }
    
      public void testEquals_notACollection() {
        // noinspection EqualsBetweenInconvertibleTypes
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 1.7K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetEqualsTester.java

                getMultiset(), getSubjectGenerator().create(getSampleElements().toArray()))
            .testEquals();
      }
    
      @CollectionSize.Require(absent = ZERO)
      public void testNotEqualsEmpty() {
        new EqualsTester()
            .addEqualityGroup(getMultiset())
            .addEqualityGroup(getSubjectGenerator().create())
            .testEquals();
      }
    
      public void testHashCodeMatchesEntrySet() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 2.3K bytes
    - Viewed (0)
Back to top