Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 67 for testEquals (0.07 sec)

  1. 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)
  2. 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)
  3. guava-tests/test/com/google/common/base/PredicatesTest.java

            .addEqualityGroup(Predicates.not(TRUE))
            .addEqualityGroup(isOdd())
            .testEquals();
      }
    
      public void testNot_equalityForNotOfKnownValues() {
        new EqualsTester()
            .addEqualityGroup(TRUE, Predicates.alwaysTrue())
            .addEqualityGroup(FALSE)
            .addEqualityGroup(Predicates.not(TRUE))
            .testEquals();
    
        new EqualsTester()
            .addEqualityGroup(FALSE, Predicates.alwaysFalse())
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 17:15:24 UTC 2024
    - 32.4K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/reflect/TypesTest.java

        new EqualsTester().addEqualityGroup(jvmType, ourType).testEquals();
      }
    
      public void testNewArrayType_primitive() {
        Type jvmType = new TypeCapture<int[]>() {}.capture();
        Type ourType = Types.newArrayType(int.class);
        assertEquals(jvmType.toString(), ourType.toString());
        new EqualsTester().addEqualityGroup(jvmType, ourType).testEquals();
      }
    
      public void testNewArrayType_upperBoundedWildcard() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:41:27 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/reflect/TypesTest.java

        new EqualsTester().addEqualityGroup(jvmType, ourType).testEquals();
      }
    
      public void testNewArrayType_primitive() {
        Type jvmType = new TypeCapture<int[]>() {}.capture();
        Type ourType = Types.newArrayType(int.class);
        assertEquals(jvmType.toString(), ourType.toString());
        new EqualsTester().addEqualityGroup(jvmType, ourType).testEquals();
      }
    
      public void testNewArrayType_upperBoundedWildcard() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:41:27 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/ImmutableListMultimapTest.java

        new EqualsTester().addEqualityGroup(input, multimap).testEquals();
      }
    
      public void testCopyOfEmpty() {
        ArrayListMultimap<String, Integer> input = ArrayListMultimap.create();
        ImmutableListMultimap<String, Integer> multimap = ImmutableListMultimap.copyOf(input);
        new EqualsTester().addEqualityGroup(input, multimap).testEquals();
      }
    
      public void testCopyOfImmutableListMultimap() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/reflect/InvokableTest.java

        assertFalse(parameters.get(1).isAnnotationPresent(NotBlank.class));
        new EqualsTester()
            .addEqualityGroup(parameters.get(0))
            .addEqualityGroup(parameters.get(1))
            .testEquals();
      }
    
      public void testConstructor_call() throws Exception {
        Invokable<?, Prepender> delegate = Prepender.constructor(String.class, int.class);
        Prepender prepender = delegate.invoke(null, "a", 1);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:00:28 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/reflect/InvokableTest.java

        assertFalse(parameters.get(1).isAnnotationPresent(NotBlank.class));
        new EqualsTester()
            .addEqualityGroup(parameters.get(0))
            .addEqualityGroup(parameters.get(1))
            .testEquals();
      }
    
      public void testConstructor_call() throws Exception {
        Invokable<?, Prepender> delegate = Prepender.constructor(String.class, int.class);
        Prepender prepender = delegate.invoke(null, "a", 1);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:00:28 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java

       *
       * <p>In all cases, if {@code C} needs custom logic for testing {@code equals()}, you can add an
       * explicit {@code testEquals()} test in the corresponding {@code CTest} class, and {@code C} will
       * be excluded from the automated {@code equals} test performed by this method.
       */
      @Test
      public void testEquals() throws Exception {
        for (Class<?> classToTest :
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 19:43:49 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/hash/HashingTest.java

            .addEqualityGroup(
                Hashing.concatenating(Hashing.md5(), Hashing.murmur3_32()),
                Hashing.concatenating(asList(Hashing.md5(), Hashing.murmur3_32())))
            .testEquals();
      }
    
      public void testConcatenatingIterable_bits() {
        assertEquals(
            Hashing.md5().bits() + Hashing.md5().bits(),
            Hashing.concatenating(asList(Hashing.md5(), Hashing.md5())).bits());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 09 17:40:09 UTC 2024
    - 26.3K bytes
    - Viewed (0)
Back to top