Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 110 for testEqual (0.2 sec)

  1. 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() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 2.3K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/google/SetMultimapAsMapTester.java

      @CollectionSize.Require(SEVERAL)
      public void testEquals() {
        resetContainer(
            Helpers.mapEntry(k0(), v0()), Helpers.mapEntry(k1(), v0()), Helpers.mapEntry(k0(), v3()));
        Map<K, Collection<V>> expected = Maps.newHashMap();
        expected.put(k0(), Sets.newHashSet(v0(), v3()));
        expected.put(k1(), Sets.newHashSet(v0()));
        new EqualsTester().addEqualityGroup(expected, multimap().asMap()).testEquals();
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetReadsTester.java

            1 ^ e0().hashCode(),
            getMultiset().entrySet().hashCode());
      }
    
      public void testEquals_yes() {
        assertTrue(
            "multiset doesn't equal a multiset with the same elements",
            getMultiset().equals(HashMultiset.create(getSampleElements())));
      }
    
      public void testEquals_differentSize() {
        Multiset<E> other = HashMultiset.create(getSampleElements());
        other.add(e0());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 3.9K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/google/ListMultimapAsMapTester.java

      public void testEquals() {
        resetContainer(
            Helpers.mapEntry(k0(), v0()), Helpers.mapEntry(k1(), v0()), Helpers.mapEntry(k0(), v3()));
        Map<K, Collection<V>> expected = Maps.newHashMap();
        expected.put(k0(), Lists.newArrayList(v0(), v3()));
        expected.put(k1(), Lists.newArrayList(v0()));
        new EqualsTester().addEqualityGroup(expected, multimap().asMap()).testEquals();
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/reflect/ParameterTest.java

          }
        }
      }
    
      public void testEquals() {
        EqualsTester tester = new EqualsTester();
        for (Method method : ParameterTest.class.getDeclaredMethods()) {
          for (Parameter param : Invokable.from(method).getParameters()) {
            tester.addEqualityGroup(param);
          }
        }
        tester.testEquals();
      }
    
      @SuppressWarnings("unused")
      private void someMethod(int i, int j) {}
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Apr 06 02:06:03 GMT 2023
    - 2K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/cache/RemovalNotificationTest.java

    import junit.framework.TestCase;
    
    /**
     * Unit tests of {@link RemovalNotification}.
     *
     * @author Ben Yu
     */
    public class RemovalNotificationTest extends TestCase {
    
      public void testEquals() {
        new EqualsTester()
            .addEqualityGroup(
                RemovalNotification.create("one", 1, RemovalCause.EXPLICIT),
                RemovalNotification.create("one", 1, RemovalCause.REPLACED))
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 1.2K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/cache/RemovalNotificationTest.java

    import junit.framework.TestCase;
    
    /**
     * Unit tests of {@link RemovalNotification}.
     *
     * @author Ben Yu
     */
    public class RemovalNotificationTest extends TestCase {
    
      public void testEquals() {
        new EqualsTester()
            .addEqualityGroup(
                RemovalNotification.create("one", 1, RemovalCause.EXPLICIT),
                RemovalNotification.create("one", 1, RemovalCause.REPLACED))
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 1.2K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/ForwardingListMultimapTest.java

                  }
                });
      }
    
      public void testEquals() {
        ListMultimap<Integer, String> map1 = ImmutableListMultimap.of(1, "one");
        ListMultimap<Integer, String> map2 = ImmutableListMultimap.of(2, "two");
        new EqualsTester()
            .addEqualityGroup(map1, wrap(map1), wrap(map1))
            .addEqualityGroup(map2, wrap(map2))
            .testEquals();
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 1.9K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/ForwardingSortedSetMultimapTest.java

                });
      }
    
      public void testEquals() {
        SortedSetMultimap<Integer, String> map1 = TreeMultimap.create(ImmutableMultimap.of(1, "one"));
        SortedSetMultimap<Integer, String> map2 = TreeMultimap.create(ImmutableMultimap.of(2, "two"));
        new EqualsTester()
            .addEqualityGroup(map1, wrap(map1), wrap(map1))
            .addEqualityGroup(map2, wrap(map2))
            .testEquals();
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 2K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/reflect/ParameterTest.java

          }
        }
      }
    
      public void testEquals() {
        EqualsTester tester = new EqualsTester();
        for (Method method : ParameterTest.class.getDeclaredMethods()) {
          for (Parameter param : Invokable.from(method).getParameters()) {
            tester.addEqualityGroup(param);
          }
        }
        tester.testEquals();
      }
    
      @SuppressWarnings("unused")
      private void someMethod(int i, int j) {}
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 06 02:06:03 GMT 2023
    - 2K bytes
    - Viewed (0)
Back to top