Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 134 for testEqual (0.16 sec)

  1. 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() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 20:12:35 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/testing/EqualsTester.java

    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Tester for equals() and hashCode() methods of a class.
     *
     * <p>The simplest use case is:
     *
     * <pre>
     * new EqualsTester().addEqualityGroup(foo).testEquals();
     * </pre>
     *
     * <p>This tests {@code foo.equals(foo)}, {@code foo.equals(null)}, and a few other operations.
     *
     * <p>For more extensive testing, add multiple equality groups. Each group should contain objects
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 31 19:11:50 UTC 2023
    - 6K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java

            continue;
          }
          testSuccessfulForwarding(interfaceType, method, wrapperFunction);
          testExceptionPropagation(interfaceType, method, wrapperFunction);
        }
        if (testsEquals) {
          testEquals(interfaceType, wrapperFunction);
        }
        testToString(interfaceType, wrapperFunction);
      }
    
      /** Returns the most concrete public methods from {@code type}. */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:00:28 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  4. android/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();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 15:00:32 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  5. android/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(mapEntry(k0(), v3()));
        new EqualsTester()
            .addEqualityGroup(multimap())
            .addEqualityGroup(getSubjectGenerator().create(targetEntries.toArray()))
            .testEquals();
      }
    
      @CollectionSize.Require(absent = ZERO)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  6. 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();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 15:00:32 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  7. 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() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  8. 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(mapEntry(k0(), v3()));
        new EqualsTester()
            .addEqualityGroup(multimap())
            .addEqualityGroup(getSubjectGenerator().create(targetEntries.toArray()))
            .testEquals();
      }
    
      @CollectionSize.Require(absent = ZERO)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  9. android/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)
  10. compat/maven-compat/src/test/java/org/apache/maven/artifact/resolver/filter/AndArtifactFilterTest.java

    /**
     * Tests {@link AndArtifactFilter}.
     *
     */
    class AndArtifactFilterTest {
    
        private ArtifactFilter newSubFilter() {
            return artifact -> false;
        }
    
        @Test
        void testEquals() {
            AndArtifactFilter filter1 = new AndArtifactFilter();
    
            AndArtifactFilter filter2 = new AndArtifactFilter(Arrays.asList(newSubFilter()));
    
            assertFalse(filter1.equals(null));
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.7K bytes
    - Viewed (0)
Back to top