Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testInvalidHashCode (0.9 sec)

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

      }
    
      /**
       * Test for an invalid hashCode method, i.e., one that returns different value for objects that
       * are equal according to the equals method
       */
      public void testInvalidHashCode() {
        Object a = new InvalidHashCodeObject(1, 2);
        Object b = new InvalidHashCodeObject(1, 2);
        equalsTester.addEqualityGroup(a, b);
        try {
          equalsTester.testEquals();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed May 14 19:40:47 UTC 2025
    - 13.1K bytes
    - Viewed (0)
Back to top