Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 135 for testEquals (0.09 sec)

  1. android/guava-tests/test/com/google/common/collect/ForwardingSortedMultisetTest.java

                  }
                });
      }
    
      public void testEquals() {
        SortedMultiset<String> set1 = ImmutableSortedMultiset.of("one");
        SortedMultiset<String> set2 = ImmutableSortedMultiset.of("two");
        new EqualsTester()
            .addEqualityGroup(set1, wrap(set1), wrap(set1))
            .addEqualityGroup(set2, wrap(set2))
            .testEquals();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/ForwardingListTest.java

                  }
                });
      }
    
      public void testEquals() {
        List<String> list1 = ImmutableList.of("one");
        List<String> list2 = ImmutableList.of("two");
        new EqualsTester()
            .addEqualityGroup(list1, wrap(list1), wrap(list1))
            .addEqualityGroup(list2, wrap(list2))
            .testEquals();
      }
    
      private static <T> List<T> wrap(final List<T> delegate) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 17 15:49:06 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/hash/FunnelsTest.java

        assertEquals(
            Funnels.stringFunnel(US_ASCII),
            SerializableTester.reserialize(Funnels.stringFunnel(US_ASCII)));
      }
    
      public void testEquals() {
        new EqualsTester()
            .addEqualityGroup(Funnels.byteArrayFunnel())
            .addEqualityGroup(Funnels.integerFunnel())
            .addEqualityGroup(Funnels.longFunnel())
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  4. 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)
  5. guava-tests/test/com/google/common/collect/ImmutableMultimapTest.java

      }
    
      public void testEquals() {
        new EqualsTester()
            .addEqualityGroup(ImmutableMultimap.of(), ImmutableMultimap.of())
            .addEqualityGroup(ImmutableMultimap.of(1, "a"), ImmutableMultimap.of(1, "a"))
            .addEqualityGroup(
                ImmutableMultimap.of(1, "a", 2, "b"), ImmutableMultimap.of(2, "b", 1, "a"))
            .testEquals();
      }
    
      @J2ktIncompatible
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/ForwardingNavigableSetTest.java

                  }
                });
      }
    
      public void testEquals() {
        NavigableSet<String> set1 = ImmutableSortedSet.of("one");
        NavigableSet<String> set2 = ImmutableSortedSet.of("two");
        new EqualsTester()
            .addEqualityGroup(set1, wrap(set1), wrap(set1))
            .addEqualityGroup(set2, wrap(set2))
            .testEquals();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/ImmutableMultimapTest.java

      }
    
      public void testEquals() {
        new EqualsTester()
            .addEqualityGroup(ImmutableMultimap.of(), ImmutableMultimap.of())
            .addEqualityGroup(ImmutableMultimap.of(1, "a"), ImmutableMultimap.of(1, "a"))
            .addEqualityGroup(
                ImmutableMultimap.of(1, "a", 2, "b"), ImmutableMultimap.of(2, "b", 1, "a"))
            .testEquals();
      }
    
      @J2ktIncompatible
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top