Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 220 for testEquals (0.25 sec)

  1. guava-testlib/test/com/google/common/testing/EqualsTesterTest.java

        equalsTester.addEqualityGroup(reference);
        equalsTester.testEquals();
      }
    
      /**
       * Test EqualsTester after populating equalObjects. This checks proper handling of equality and
       * verifies hashCode for valid objects
       */
      public void testTestEqualsEqualsObjects() {
        equalsTester.addEqualityGroup(reference, equalObject1, equalObject2);
        equalsTester.testEquals();
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Apr 17 15:49:06 GMT 2023
    - 12.9K bytes
    - Viewed (0)
  2. 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 Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 3.5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/base/FunctionsTest.java

            .addEqualityGroup(g)
            .testEquals();
    
        new EqualsTester()
            .addEqualityGroup(g, Functions.<@Nullable Object>constant(null))
            .addEqualityGroup(Functions.constant("incorrect"))
            .addEqualityGroup(Functions.toStringFunction())
            .addEqualityGroup(f)
            .testEquals();
      }
    
      @J2ktIncompatible
      @GwtIncompatible // SerializableTester
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 16K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/base/FunctionsTest.java

            .addEqualityGroup(g)
            .testEquals();
    
        new EqualsTester()
            .addEqualityGroup(g, Functions.<@Nullable Object>constant(null))
            .addEqualityGroup(Functions.constant("incorrect"))
            .addEqualityGroup(Functions.toStringFunction())
            .addEqualityGroup(f)
            .testEquals();
      }
    
      @J2ktIncompatible
      @GwtIncompatible // SerializableTester
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 16K bytes
    - Viewed (0)
  5. guava-testlib/test/com/google/common/testing/ClassSanityTesterTest.java

      }
    
      public void testGoodEquals() throws Exception {
        tester.testEquals(GoodEquals.class);
      }
    
      public void testEquals_interface() {
        tester.testEquals(AnInterface.class);
      }
    
      public void testEquals_abstractClass() {
        tester.testEquals(AnAbstractClass.class);
      }
    
      public void testEquals_enum() {
        tester.testEquals(OneConstantEnum.class);
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Nov 16 15:12:31 GMT 2023
    - 36.3K bytes
    - Viewed (0)
  6. 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 Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 4.8K bytes
    - Viewed (0)
  7. 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 19 12:43:09 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 4.8K bytes
    - Viewed (0)
  8. 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 Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 3.5K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/testers/ListEqualsTester.java

    public class ListEqualsTester<E> extends AbstractListTester<E> {
      public void testEquals_otherListWithSameElements() {
        assertTrue(
            "A List should equal any other List containing the same elements.",
            getList().equals(new ArrayList<E>(getOrderedElements())));
      }
    
      @CollectionSize.Require(absent = CollectionSize.ZERO)
      public void testEquals_otherListWithDifferentElements() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 3.5K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/testers/ListEqualsTester.java

    public class ListEqualsTester<E> extends AbstractListTester<E> {
      public void testEquals_otherListWithSameElements() {
        assertTrue(
            "A List should equal any other List containing the same elements.",
            getList().equals(new ArrayList<E>(getOrderedElements())));
      }
    
      @CollectionSize.Require(absent = CollectionSize.ZERO)
      public void testEquals_otherListWithDifferentElements() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 3.5K bytes
    - Viewed (0)
Back to top